public enum CustomRotationHelper extends java.lang.Enum<CustomRotationHelper>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.EnumActionResult |
attemptRotateBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing sideWrenched) |
void |
registerHandler(net.minecraft.block.Block block,
ICustomRotationHandler handler) |
void |
registerHandlerForAll(java.lang.Class<? extends net.minecraft.block.Block> blockClass,
ICustomRotationHandler handler) |
static CustomRotationHelper |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CustomRotationHelper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomRotationHelper INSTANCE
public static CustomRotationHelper[] values()
for (CustomRotationHelper c : CustomRotationHelper.values()) System.out.println(c);
public static CustomRotationHelper valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void registerHandlerForAll(java.lang.Class<? extends net.minecraft.block.Block> blockClass, ICustomRotationHandler handler)
public void registerHandler(net.minecraft.block.Block block, ICustomRotationHandler handler)
public net.minecraft.util.EnumActionResult attemptRotateBlock(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.util.EnumFacing sideWrenched)