Class ExprEnderChest

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.PropertyExpression<F,​T>
ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.inventory.Inventory>
ch.njol.skript.expressions.ExprEnderChest
All Implemented Interfaces:
Converter<org.bukkit.entity.Player,​org.bukkit.inventory.Inventory>, Debuggable, Expression<org.bukkit.inventory.Inventory>, SyntaxElement

@Name("Ender Chest") @Description("The ender chest of a player.") @Examples("open the player\'s ender chest to the player") @Since("2.0") public class ExprEnderChest extends SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.inventory.Inventory>
  • Constructor Details

    • ExprEnderChest

      public ExprEnderChest()
  • Method Details

    • convert

      public @Nullable org.bukkit.inventory.Inventory convert(org.bukkit.entity.Player p)
      Description copied from interface: Converter
      Converts an object from the given to the desired type.
      Specified by:
      convert in interface Converter<org.bukkit.entity.Player,​org.bukkit.inventory.Inventory>
      Specified by:
      convert in class SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.inventory.Inventory>
      Parameters:
      p - The object to convert.
      Returns:
      the converted object
    • getReturnType

      public Class<? extends org.bukkit.inventory.Inventory> getReturnType()
      Description copied from interface: Expression
      Gets the return type of this expression.
      Returns:
      A supertype of any objects returned by Expression.getSingle(Event) and the component type of any arrays returned by Expression.getArray(Event)
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.inventory.Inventory>