Package org.bukkit.material.types
Enum MushroomBlockTexture
- java.lang.Object
-
- java.lang.Enum<MushroomBlockTexture>
-
- org.bukkit.material.types.MushroomBlockTexture
-
- All Implemented Interfaces:
Serializable
,Comparable<MushroomBlockTexture>
public enum MushroomBlockTexture extends Enum<MushroomBlockTexture>
Represents the different textured blocks of mushroom.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_CAP
Cap texture on all faces.ALL_PORES
Pores on all faces.ALL_STEM
Stem texture on all faces.CAP_EAST
Cap texture on the top and east faces, pores on remaining sides.CAP_NORTH
Cap texture on the top and north faces, pores on remaining sides.CAP_NORTH_EAST
Cap texture on the top, north and east faces, pores on remaining sides.CAP_NORTH_WEST
Cap texture on the top, north and west faces, pores on remaining sides.CAP_SOUTH
Cap texture on the top and south faces, pores on remaining sides.CAP_SOUTH_EAST
Cap texture on the top, south and east faces, pores on remaining sides.CAP_SOUTH_WEST
Cap texture on the top, south and west faces, pores on remaining sides.CAP_TOP
Cap texture on the top face, pores on remaining sides.CAP_WEST
Cap texture on the top and west faces, pores on remaining sides.STEM_SIDES
Stem texture on the north, east, south and west faces, pores on top and bottom.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MushroomBlockTexture
getByData(byte data)
Deprecated.Magic valuestatic MushroomBlockTexture
getCapByFace(BlockFace face)
Gets the MushroomBlockType with cap texture on the given block face.BlockFace
getCapFace()
Gets the face that has cap texture.byte
getData()
Deprecated.Magic valuestatic MushroomBlockTexture
valueOf(String name)
Returns the enum constant of this type with the specified name.static MushroomBlockTexture[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL_PORES
public static final MushroomBlockTexture ALL_PORES
Pores on all faces.
-
CAP_NORTH_WEST
public static final MushroomBlockTexture CAP_NORTH_WEST
Cap texture on the top, north and west faces, pores on remaining sides.
-
CAP_NORTH
public static final MushroomBlockTexture CAP_NORTH
Cap texture on the top and north faces, pores on remaining sides.
-
CAP_NORTH_EAST
public static final MushroomBlockTexture CAP_NORTH_EAST
Cap texture on the top, north and east faces, pores on remaining sides.
-
CAP_WEST
public static final MushroomBlockTexture CAP_WEST
Cap texture on the top and west faces, pores on remaining sides.
-
CAP_TOP
public static final MushroomBlockTexture CAP_TOP
Cap texture on the top face, pores on remaining sides.
-
CAP_EAST
public static final MushroomBlockTexture CAP_EAST
Cap texture on the top and east faces, pores on remaining sides.
-
CAP_SOUTH_WEST
public static final MushroomBlockTexture CAP_SOUTH_WEST
Cap texture on the top, south and west faces, pores on remaining sides.
-
CAP_SOUTH
public static final MushroomBlockTexture CAP_SOUTH
Cap texture on the top and south faces, pores on remaining sides.
-
CAP_SOUTH_EAST
public static final MushroomBlockTexture CAP_SOUTH_EAST
Cap texture on the top, south and east faces, pores on remaining sides.
-
STEM_SIDES
public static final MushroomBlockTexture STEM_SIDES
Stem texture on the north, east, south and west faces, pores on top and bottom.
-
ALL_CAP
public static final MushroomBlockTexture ALL_CAP
Cap texture on all faces.
-
ALL_STEM
public static final MushroomBlockTexture ALL_STEM
Stem texture on all faces.
-
-
Method Detail
-
values
public static MushroomBlockTexture[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MushroomBlockTexture c : MushroomBlockTexture.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MushroomBlockTexture valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getData
@Deprecated public byte getData()
Deprecated.Magic valueGets the associated data value representing this mushroom block face.- Returns:
- A byte containing the data value of this mushroom block face
-
getCapFace
@Nullable public BlockFace getCapFace()
Gets the face that has cap texture.- Returns:
- The cap face
-
getByData
@Deprecated @Nullable public static MushroomBlockTexture getByData(byte data)
Deprecated.Magic valueGets the MushroomBlockType with the given data value.- Parameters:
data
- Data value to fetch- Returns:
- The
MushroomBlockTexture
representing the given value, or null if it doesn't exist
-
getCapByFace
@Nullable public static MushroomBlockTexture getCapByFace(@Nullable BlockFace face)
Gets the MushroomBlockType with cap texture on the given block face.- Parameters:
face
- the required block face with cap texture- Returns:
- The
MushroomBlockTexture
representing the given block face, or null if it doesn't exist - See Also:
BlockFace
-
-