use of riskyken.armourersWorkshop.common.painting.IBlockPainter in project Armourers-Workshop by RiskyKen.
the class RenderBlockColourable method isPlayerHoldingPaintingTool.
private boolean isPlayerHoldingPaintingTool() {
EntityClientPlayerMP player = mc.thePlayer;
ItemStack stack = player.getCurrentEquippedItem();
if (stack != null) {
Item item = stack.getItem();
if (item instanceof IBlockPainter) {
return true;
} else if (item == ModItems.colourPicker) {
return true;
} else if (item == ModItems.blockMarker) {
return true;
}
}
return false;
}
Aggregations