Class ExprSecBlankEquipComp
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<EquippableWrapper>
ch.njol.skript.expressions.base.SectionExpression<EquippableWrapper>
org.skriptlang.skript.bukkit.itemcomponents.equippable.elements.ExprSecBlankEquipComp
- All Implemented Interfaces:
Debuggable,Expression<EquippableWrapper>,Loopable<EquippableWrapper>,Simplifiable<Expression<? extends EquippableWrapper>>,SyntaxElement,EquippableExperimentSyntax,ExperimentalSyntax,SimpleExperimentalSyntax,RuntimeErrorProducer,SyntaxRuntimeErrorProducer
@Name("Blank Equippable Component")
@Description("Gets a blank equippable component.\nNOTE: Equippable component elements are experimental. Thus, they are subject to change and may not work as intended.\n")
@Example("set {_component} to a blank equippable component:\n\tset the camera overlay to \"custom_overlay\"\n\tset the allowed entities to a zombie and a skeleton\n\tset the equip sound to \"block.note_block.pling\"\n\tset the equipped model id to \"custom_model\"\n\tset the shear sound to \"ui.toast.in\"\n\tset the equipment slot to chest slot\n\tallow event-equippable component to be damage when hurt\n\tallow event-equippable component to be dispensed\n\tallow event-equippable component to be equipped onto entities\n\tallow event-equippable component to be sheared off\n\tallow event-equippable component to swap equipment\nset the equippable component of {_item} to {_component}\n")
@RequiredPlugins("Minecraft 1.21.2+")
@Since("2.13")
public class ExprSecBlankEquipComp
extends ch.njol.skript.expressions.base.SectionExpression<EquippableWrapper>
implements EquippableExperimentSyntax
-
Field Summary
Fields inherited from class ch.njol.skript.expressions.base.SectionExpression
sectionFields inherited from interface org.skriptlang.skript.bukkit.itemcomponents.equippable.EquippableExperimentSyntax
EXPERIMENT_DATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EquippableWrapper @Nullable []get(org.bukkit.event.Event event) This is the internal method to get an expression's values.
To get the expression's value from the outside useSimpleExpression.getSingle(Event)orSimpleExpression.getArray(Event).Gets the return type of this expression.booleaninit(Expression<?>[] exprs, int pattern, Kleenean delayed, SkriptParser.ParseResult result, @Nullable SectionNode node, @Nullable List<TriggerItem> triggerItems) booleanisSingle()static voidregister(SyntaxRegistry registry) toString(@Nullable org.bukkit.event.Event event, boolean debug) Methods inherited from class ch.njol.skript.expressions.base.SectionExpression
getAsSection, init, isSectionOnly, loadCode, loadCode, loadCode, loadOptionalCode, runSection, setTriggerItemsMethods inherited from class ch.njol.skript.lang.util.SimpleExpression
acceptChange, change, 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 org.skriptlang.skript.bukkit.itemcomponents.equippable.EquippableExperimentSyntax
getExperimentDataMethods inherited from interface ch.njol.skript.lang.Expression
beforeChange, canBeSingle, canReturn, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, possibleReturnTypes, stream, streamAllMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface org.skriptlang.skript.lang.experiment.SimpleExperimentalSyntax
isSatisfiedByMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser, init, preInitMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprSecBlankEquipComp
public ExprSecBlankEquipComp()
-
-
Method Details
-
register
-
init
public boolean init(Expression<?>[] exprs, int pattern, Kleenean delayed, SkriptParser.ParseResult result, @Nullable @Nullable SectionNode node, @Nullable @Nullable List<TriggerItem> triggerItems) - Specified by:
initin classch.njol.skript.expressions.base.SectionExpression<EquippableWrapper>
-
get
Description copied from class:SimpleExpressionThis is the internal method to get an expression's values.
To get the expression's value from the outside useSimpleExpression.getSingle(Event)orSimpleExpression.getArray(Event).- Specified by:
getin classSimpleExpression<EquippableWrapper>- Parameters:
event- The event with which this expression is evaluated.- Returns:
- An array of values for this event. May not contain nulls.
-
isSingle
public boolean isSingle()- Specified by:
isSinglein interfaceExpression<EquippableWrapper>- Returns:
- true if this expression will ever only return one value at most, false if it can return multiple values.
-
getReturnType
Description copied from interface:ExpressionGets the return type of this expression.- Specified by:
getReturnTypein interfaceExpression<EquippableWrapper>- Returns:
- A supertype of any objects returned by
Expression.getSingle(Event)and the component type of any arrays returned byExpression.getArray(Event)
-
toString
- Specified by:
toStringin interfaceDebuggable- Parameters:
event- The event to get information from. This is always null if debug == false.debug- If true this should print more information, if false this should print what is shown to the end user- Returns:
- String representation of this object
-