mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Spring Cleaning (#127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
1544c1bf0d
commit
3b2b31f733
413 files changed
+9272
-17658
No files matched your search
@@ -12,56 +12,14 @@ import WayofTime.alchemicalWizardry.client.renderer.RenderHelper;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import cpw.mods.fml.common.eventhandler.Event.Result;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.InputEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.RenderTickEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
|
||||
public class ClientEventHandler {
|
||||
|
||||
private Minecraft mc = FMLClientHandler.instance().getClient();
|
||||
private final Minecraft mc = FMLClientHandler.instance().getClient();
|
||||
|
||||
public static ResourceLocation currentPlayerTexture = null;
|
||||
|
||||
// @SideOnly(Side.CLIENT)
|
||||
// @SubscribeEvent
|
||||
// public void renderPOVArmour(RenderHandEvent event)
|
||||
// {
|
||||
// if (this.mc.thePlayer.worldObj.isRemote && this.mc.gameSettings.thirdPersonView == 0 &&
|
||||
// !this.mc.renderViewEntity.isPlayerSleeping() && !this.mc.gameSettings.hideGUI &&
|
||||
// !this.mc.playerController.enableEverythingIsScrewedUpMode())
|
||||
// {
|
||||
// currentPlayerTexture = ((AbstractClientPlayer) mc.thePlayer).getLocationSkin();
|
||||
//
|
||||
// ClientUtils.renderPlayerArmourInPOV(mc.thePlayer, event.partialTicks);
|
||||
// event.setCanceled(true);
|
||||
// }
|
||||
// }
|
||||
|
||||
// @SubscribeEvent(priority = EventPriority.LOWEST)
|
||||
// public void onPlayerRenderTick(RenderPlayerEvent.Pre event)
|
||||
// {
|
||||
// ModelBiped model = ((BoundArmour)ModItems.boundPlate).getArmorModel(event.entityPlayer, new
|
||||
// ItemStack(ModItems.boundPlate), 2);
|
||||
// String texture = ((BoundArmour)ModItems.boundPlate).getArmorTexture(new ItemStack(ModItems.boundPlate),
|
||||
// event.entityPlayer, 2, "");
|
||||
//
|
||||
// ResourceLocation resourcelocation = new ResourceLocation(texture);
|
||||
// event.renderer.modelBipedMain.bipedBody.addChild(model.bipedBody);
|
||||
// Minecraft.getMinecraft().renderEngine.bindTexture(resourcelocation);
|
||||
//
|
||||
// }
|
||||
|
||||
@SubscribeEvent
|
||||
public void onKeyInput(InputEvent.KeyInputEvent event) {
|
||||
// if(KeyBindings.omegaTest.isPressed())
|
||||
// {
|
||||
// System.out.println("ping");
|
||||
//// NewPacketHandler.INSTANCE.sendToServer(NewPacketHandler.getKeyboardPressPacket((byte)2));
|
||||
// ClientToServerPacketHandler.INSTANCE.sendToServer(new
|
||||
// MessageKeyPressed(MessageKeyPressed.Key.OMEGA_ACTIVE));
|
||||
// }
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPlayerSoundEvent(SoundEvent event) {
|
||||
if (Minecraft.getMinecraft() != null) {
|
||||
@@ -89,21 +47,9 @@ public class ClientEventHandler {
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onTick(RenderTickEvent event) {
|
||||
if (event.phase.equals(Phase.START)) return;
|
||||
public void onTick(TickEvent.RenderTickEvent event) {
|
||||
if (event.phase.equals(TickEvent.Phase.START)) return;
|
||||
|
||||
if (!RenderHelper.onTickInGame(mc)) {}
|
||||
RenderHelper.onTickInGame(mc);
|
||||
}
|
||||
|
||||
// @SubscribeEvent
|
||||
// public void onRenderLivingPlayerPre(RenderPlayerEvent.Pre event)
|
||||
// {
|
||||
// GL11.glDisable(2929);
|
||||
// }
|
||||
//
|
||||
// @SubscribeEvent
|
||||
// public void onRenderLivingPlayerPost(RenderPlayerEvent.Post event)
|
||||
// {
|
||||
// GL11.glEnable(2929);
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user