Class MinecartData

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

public class MinecartData extends EntityData<org.bukkit.entity.Minecart>
  • Constructor Details

    • MinecartData

      public MinecartData()
    • MinecartData

      public MinecartData(ch.njol.skript.entity.MinecartData.MinecartType type)
  • Method Details

    • init

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

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

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

      public boolean match(org.bukkit.entity.Minecart entity)
      Specified by:
      match in class EntityData<org.bukkit.entity.Minecart>
    • getType

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

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

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

      protected boolean deserialize(String s)
      Overrides:
      deserialize in class EntityData<org.bukkit.entity.Minecart>
    • isSupertypeOf

      public boolean isSupertypeOf(EntityData<?> e)
      Specified by:
      isSupertypeOf in class EntityData<org.bukkit.entity.Minecart>
    • 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.Minecart>
      Returns:
      The supertype of this entity data. Must not be null.