Search in sources :

Example 1 with DebugModeGreenHouse

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());
    }
}
Also used : DebugModeGreenHouse(com.infinityraider.agricraft.util.debug.DebugModeGreenHouse) ItemStack(net.minecraft.item.ItemStack) PlayerEntity(net.minecraft.entity.player.PlayerEntity) SubscribeEvent(net.minecraftforge.eventbus.api.SubscribeEvent)

Aggregations

DebugModeGreenHouse (com.infinityraider.agricraft.util.debug.DebugModeGreenHouse)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1 ItemStack (net.minecraft.item.ItemStack)1 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)1