use of com.infinityraider.agricraft.util.debug.DebugModeGreenHouse in project AgriCraft by AgriCraft.
the class BlockGreenHouseAirRenderer method render.
@SubscribeEvent
@SuppressWarnings("unused")
public void render(RenderWorldLastEvent event) {
PlayerEntity player = AgriCraft.instance.getClientPlayer();
ItemStack stack = player.getHeldItemMainhand();
if (stack.getItem() != AgriCraft.instance.getModItemRegistry().debugger) {
return;
}
if (AgriCraft.instance.getModItemRegistry().debugger.getDebugMode(stack) instanceof DebugModeGreenHouse) {
this.highlightGreenHouseAirBlocks(player.getEntityWorld(), player.getPosition(), event.getMatrixStack());
}
}
Aggregations