Class FallingBlockData

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

public class FallingBlockData extends EntityData<org.bukkit.entity.FallingBlock>
  • Constructor Details

    • FallingBlockData

      public FallingBlockData()
    • FallingBlockData

      public FallingBlockData(@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.FallingBlock>
    • init

      protected boolean init(@Nullable Class<? extends org.bukkit.entity.FallingBlock> c, @Nullable org.bukkit.entity.FallingBlock e)
      Specified by:
      init in class EntityData<org.bukkit.entity.FallingBlock>
      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.FallingBlock entity)
      Specified by:
      match in class EntityData<org.bukkit.entity.FallingBlock>
    • spawn

      public @Nullable org.bukkit.entity.FallingBlock spawn(org.bukkit.Location loc, @Nullable Consumer<org.bukkit.entity.FallingBlock> consumer)
      Description copied from class: EntityData
      Spawn this entity data at a location. The consumer allows for modiciation to the entity before it actually gets spawned.
      Overrides:
      spawn in class EntityData<org.bukkit.entity.FallingBlock>
      Parameters:
      loc - The Location to spawn the entity at.
      consumer - A Consumer to apply the entity changes to.
      Returns:
      The Entity object that is spawned.
    • set

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

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

      public boolean isSupertypeOf(EntityData<?> e)
      Specified by:
      isSupertypeOf in class EntityData<org.bukkit.entity.FallingBlock>
    • 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.FallingBlock>
      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.FallingBlock>
    • deserialize

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

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

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