Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.madcrazydrumma.keys;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.entity.AbstractClientPlayer;
- import net.minecraft.client.model.ModelPlayer;
- import net.minecraft.client.renderer.entity.RenderManager;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraftforge.fml.common.Mod.EventHandler;
- import net.minecraftforge.fml.common.gameevent.InputEvent;
- public class KeyHandler
- {
- @EventHandler
- public void onKeyPress(InputEvent.KeyInputEvent event) {
- if(KeyBindings.emote.isPressed()) {
- EntityPlayer player = Minecraft.getMinecraft().thePlayer;
- RenderManager rm = Minecraft.getMinecraft().getRenderManager();
- ModelPlayer mp = (ModelPlayer) rm.getSkinMap().get(((AbstractClientPlayer) player).getSkinType()).getMainModel();
- //Do animations
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement