use of net.minecraftforge.client.event.RenderBlockOverlayEvent in project NetherEx by LogicTechCorp.
the class EventHandler method onRenderBlockOverlay.
@SubscribeEvent
@SideOnly(Side.CLIENT)
public static void onRenderBlockOverlay(RenderBlockOverlayEvent event) {
RenderBlockOverlayEvent.OverlayType type = event.getOverlayType();
EntityPlayer player = event.getPlayer();
World world = player.getEntityWorld();
if (type == RenderBlockOverlayEvent.OverlayType.FIRE) {
if (player.isRiding() && player.getRidingEntity() instanceof EntityObsidianBoat || ArmorUtil.isWearingFullArmorSet(player, NetherExMaterials.ARMOR_HIDE_SALAMANDER)) {
event.setCanceled(true);
}
}
}
Aggregations