Class DroppedItemData

java.lang.Object
ch.njol.skript.entity.EntityData<org.bukkit.entity.Item>
ch.njol.skript.entity.DroppedItemData
All Implemented Interfaces:
SyntaxElement, YggdrasilSerializable, YggdrasilSerializable.YggdrasilExtendedSerializable

public class DroppedItemData extends EntityData<org.bukkit.entity.Item>
  • Constructor Details

    • DroppedItemData

      public DroppedItemData()
    • DroppedItemData

      public DroppedItemData(@Nullable ItemType[] types)
  • Method Details

    • init

      protected boolean init(Literal<?>[] exprs, int matchedPattern, SkriptParser.ParseResult parseResult)
      Specified by:
      init in class EntityData<org.bukkit.entity.Item>
    • init

      protected boolean init(@Nullable Class<? extends org.bukkit.entity.Item> c, @Nullable org.bukkit.entity.Item e)
      Specified by:
      init in class EntityData<org.bukkit.entity.Item>
      Parameters:
      c - An entity's class, e.g. Player
      e - An actual entity, or null to get an entity data for an entity class
      Returns:
      Whether initialisation was successful
    • match

      protected boolean match(org.bukkit.entity.Item entity)
      Specified by:
      match in class EntityData<org.bukkit.entity.Item>
    • set

      public void set(org.bukkit.entity.Item entity)
      Specified by:
      set in class EntityData<org.bukkit.entity.Item>
    • isSupertypeOf

      public boolean isSupertypeOf(EntityData<?> e)
      Specified by:
      isSupertypeOf in class EntityData<org.bukkit.entity.Item>
    • getType

      public Class<? extends org.bukkit.entity.Item> getType()
      Specified by:
      getType in class EntityData<org.bukkit.entity.Item>
    • getSuperType

      public EntityData getSuperType()
      Description copied from class: EntityData
      Returns the super type of this entity data, e.g. 'wolf' for 'angry wolf'.
      Specified by:
      getSuperType in class EntityData<org.bukkit.entity.Item>
      Returns:
      The supertype of this entity data. Must not be null.
    • toString

      public String toString(int flags)
      Overrides:
      toString in class EntityData<org.bukkit.entity.Item>
    • deserialize

      @Deprecated protected boolean deserialize(String s)
      Deprecated.
      Overrides:
      deserialize in class EntityData<org.bukkit.entity.Item>
    • equals_i

      protected boolean equals_i(EntityData<?> obj)
      Specified by:
      equals_i in class EntityData<org.bukkit.entity.Item>
    • hashCode_i

      protected int hashCode_i()
      Specified by:
      hashCode_i in class EntityData<org.bukkit.entity.Item>