public enum CustomPaintHelper extends java.lang.Enum<CustomPaintHelper>
ICustomPaintHandler
's that are
registered for the block.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.EnumActionResult |
attemptPaintBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.Vec3d hitPos,
net.minecraft.util.EnumFacing hitSide,
net.minecraft.item.EnumDyeColor paint)
Attempts to paint a block at the given position.
|
void |
registerHandler(net.minecraft.block.Block block,
ICustomPaintHandler handler) |
void |
registerHandlerForAll(java.lang.Class<? extends net.minecraft.block.Block> blockClass,
ICustomPaintHandler handler)
Register's a paint handler for every class of a given block.
|
void |
registerHandlerForAll(ICustomPaintHandler handler)
Registers a handler that will be called LAST for ALL blocks, if all other paint handlers have returned PASS or
none are registered for that block.
|
static CustomPaintHelper |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CustomPaintHelper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomPaintHelper INSTANCE
public static CustomPaintHelper[] values()
for (CustomPaintHelper c : CustomPaintHelper.values()) System.out.println(c);
public static CustomPaintHelper 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(ICustomPaintHandler handler)
public void registerHandlerForAll(java.lang.Class<? extends net.minecraft.block.Block> blockClass, ICustomPaintHandler handler)
public void registerHandler(net.minecraft.block.Block block, ICustomPaintHandler handler)
public net.minecraft.util.EnumActionResult attemptPaintBlock(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.util.math.Vec3d hitPos, @Nullable net.minecraft.util.EnumFacing hitSide, @Nullable net.minecraft.item.EnumDyeColor paint)