java.lang.Object
ch.njol.skript.lang.TriggerItem
ch.njol.skript.lang.Statement
ch.njol.skript.lang.Condition
ch.njol.skript.conditions.base.PropertyCondition<EquippableWrapper>
org.skriptlang.skript.bukkit.itemcomponents.equippable.elements.CondEquipCompShearable
All Implemented Interfaces:
Debuggable, Simplifiable<Condition>, SyntaxElement, Predicate<EquippableWrapper>, EquippableExperimentSyntax, Conditional<org.bukkit.event.Event>, ExperimentalSyntax, SimpleExperimentalSyntax, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Equippable Component - Can Be Sheared Off") @Description("Whether an item can be sheared off of an entity.\nNOTE: Equippable component elements are experimental. Thus, they are subject to change and may not work as intended.\n") @Example("if {_item} can be sheared off:\n\tadd \"Shearable\" to lore of {_item}\n") @Example("set {_component} to the equippable component of {_item}\nif {_component} can not be sheared off:\n\tallow {_component} to be sheared off\n") @RequiredPlugins("Minecraft 1.21.6+") @Since("2.13") public class CondEquipCompShearable extends ch.njol.skript.conditions.base.PropertyCondition<EquippableWrapper> implements EquippableExperimentSyntax
  • Constructor Details

    • CondEquipCompShearable

      public CondEquipCompShearable()
  • Method Details

    • register

      public static void register(SyntaxRegistry registry)
    • check

      public boolean check(EquippableWrapper wrapper)
      Specified by:
      check in class ch.njol.skript.conditions.base.PropertyCondition<EquippableWrapper>
    • getPropertyType

      protected ch.njol.skript.conditions.base.PropertyCondition.PropertyType getPropertyType()
      Overrides:
      getPropertyType in class ch.njol.skript.conditions.base.PropertyCondition<EquippableWrapper>
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class ch.njol.skript.conditions.base.PropertyCondition<EquippableWrapper>