Class PropExprCustomName
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<Object>
org.skriptlang.skript.lang.properties.PropertyBaseExpression<PropertyHandler.ExpressionPropertyHandler<?,?>>
org.skriptlang.skript.common.properties.expressions.PropExprCustomName
- All Implemented Interfaces:
Debuggable,Expression<Object>,Loopable<Object>,Simplifiable<Expression<? extends Object>>,SyntaxElement,PropertyBaseSyntax<PropertyHandler.ExpressionPropertyHandler<?,,?>> RuntimeErrorProducer,SyntaxRuntimeErrorProducer
@Name("Display Name")
@Description({"Represents the display name of a player, or the custom name of an item, entity, block, or inventory.","","<strong>Players:</strong> The name of the player that is displayed in messages. This name can be changed freely and can include color codes, and is shared among all plugins (e.g. chat plugins will use the display name).","","<strong>Entities:</strong> The custom name of the entity. Can be changed, which will also enable <em>custom name visibility</em> of the entity so name tag of the entity will be visible always.","","<strong>Items:</strong> The <em>custom</em> name of the item (not the Minecraft locale name). Can be changed.","","<strong>Inventories:</strong> The name/title of the inventory. Changing name of an inventory means opening the same inventory with the same contents but with a different name to its current viewers."})
@Example("on join:\n\tplayer has permission \"name.red\"\n\tset the player\'s display name to \"<red>[admin] <gold>%name of player%\"\n")
@Since({"before 2.1","2.2-dev20 (inventory name)","2.4 (non-living entity support, changeable inventory name)"})
@RelatedProperty("display name")
public class PropExprCustomName
extends PropertyBaseExpression<PropertyHandler.ExpressionPropertyHandler<?,?>>
-
Field Summary
Fields inherited from class org.skriptlang.skript.lang.properties.PropertyBaseExpression
expr, properties, property, returnType, returnTypes, useCIP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the property this expression represents.Methods inherited from class org.skriptlang.skript.lang.properties.PropertyBaseExpression
acceptChange, change, convert, get, getPropertyReturnTypes, getReturnType, init, isSingle, possibleReturnTypes, register, toStringMethods inherited from class ch.njol.skript.lang.util.SimpleExpression
check, check, check, getAll, getAnd, getArray, getConvertedExpr, getConvertedExpression, getNode, getSingle, getSource, getTime, isDefault, isLoopOf, iterator, preInit, setTime, setTime, setTime, setTime, setTime, simplify, supportsLoopPeeking, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.njol.skript.lang.Expression
beforeChange, canBeSingle, canReturn, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, stream, streamAllMethods inherited from interface org.skriptlang.skript.lang.properties.PropertyBaseSyntax
getBadTypesErrorMessage, getPropertyNameMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParserMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
PropExprCustomName
public PropExprCustomName()
-
-
Method Details
-
getProperty
Description copied from interface:PropertyBaseSyntaxGets the property this expression represents. This is used to find the appropriate handlers for the expression's input types.- Returns:
- The property this expression represents.
-