public interface ICustomPaintHandler
CustomPaintHelper
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.EnumActionResult |
attemptPaint(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 paintColour)
Attempts to paint the given block.
|
net.minecraft.util.EnumActionResult attemptPaint(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 paintColour)
world
- The world that the block is contained within.pos
- The position of the block.state
- The current state of the block.hitPos
- The absolute hit position of the paintbrush, relative the world's origin.hitSide
- The side of the block that was hit.paintColour
- The paint colour to attempt to paint with, null if the paint should be cleared (so if this was
a stained glass block, and null was passed, this would set it to a normal, clear, non-stained glass
block.