Enum Class BoatEntity.Type

java.lang.Object
java.lang.Enum<BoatEntity.Type>
net.minecraft.entity.item.BoatEntity.Type
All Implemented Interfaces:
Serializable, Comparable<BoatEntity.Type>, Constable
Enclosing class:
BoatEntity

public static enum BoatEntity.Type extends Enum<BoatEntity.Type>
  • Enum Constant Details

  • Field Details

    • name

      private final String name
    • planks

      private final Block planks
  • Constructor Details

    • Type

      private Type(Block p_i48146_3_, String p_i48146_4_)
  • Method Details

    • values

      public static BoatEntity.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BoatEntity.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
    • getPlanks

      public Block getPlanks()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BoatEntity.Type>
    • byId

      public static BoatEntity.Type byId(int p_184979_0_)
    • byName

      public static BoatEntity.Type byName(String p_184981_0_)