Advertisement
Guest User

Untitled

a guest
Dec 26th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. package net.madcrazydrumma.keys;
  2.  
  3. import net.minecraft.client.Minecraft;
  4. import net.minecraft.client.entity.AbstractClientPlayer;
  5. import net.minecraft.client.model.ModelPlayer;
  6. import net.minecraft.client.renderer.entity.RenderManager;
  7. import net.minecraft.entity.player.EntityPlayer;
  8. import net.minecraftforge.fml.common.Mod.EventHandler;
  9. import net.minecraftforge.fml.common.gameevent.InputEvent;
  10.  
  11. public class KeyHandler
  12. {
  13. @EventHandler
  14. public void onKeyPress(InputEvent.KeyInputEvent event) {
  15. if(KeyBindings.emote.isPressed()) {
  16. EntityPlayer player = Minecraft.getMinecraft().thePlayer;
  17. RenderManager rm = Minecraft.getMinecraft().getRenderManager();
  18. ModelPlayer mp = (ModelPlayer) rm.getSkinMap().get(((AbstractClientPlayer) player).getSkinType()).getMainModel();
  19. //Do animations
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement