Package net.minecraft.util
Enum BlockVoxelShape
- java.lang.Object
-
- java.lang.Enum<BlockVoxelShape>
-
- net.minecraft.util.BlockVoxelShape
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlockVoxelShape>
public enum BlockVoxelShape extends java.lang.Enum<BlockVoxelShape>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockVoxelShape()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isSupporting(BlockState p_241854_1_, IBlockReader p_241854_2_, BlockPos p_241854_3_, Direction p_241854_4_)
static BlockVoxelShape
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BlockVoxelShape[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL
public static final BlockVoxelShape FULL
-
CENTER
public static final BlockVoxelShape CENTER
-
RIGID
public static final BlockVoxelShape RIGID
-
-
Method Detail
-
values
public static BlockVoxelShape[] 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 (BlockVoxelShape c : BlockVoxelShape.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockVoxelShape valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isSupporting
public abstract boolean isSupporting(BlockState p_241854_1_, IBlockReader p_241854_2_, BlockPos p_241854_3_, Direction p_241854_4_)
-
-