O3Bubbles09

Untitled

Feb 12th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package shelter.common;
  2.  
  3. import java.util.EnumSet;
  4.  
  5. import net.minecraft.client.Minecraft;
  6. import net.minecraft.item.ItemStack;
  7. import cpw.mods.fml.client.FMLClientHandler;
  8. import cpw.mods.fml.common.ITickHandler;
  9. import cpw.mods.fml.common.TickType;
  10.  
  11. public class ArmorTicker implements ITickHandler {
  12. public void tickStart(EnumSet<TickType> type, Object... tickData) {
  13. }
  14. public void tickEnd(EnumSet<TickType> type, Object... tickData) {
  15.  
  16. }
  17. private void onTickInGame() {
  18. ItemStack boots = Minecraft.getMinecraft().thePlayer.inventory.armorItemInSlot(4);
  19.  
  20. if(boots != null && boots.itemID == shelter.common.Shelter.copperBoots.itemID) {
  21. Minecraft.getMinecraft().thePlayer.fallDistance = 0.0F;
  22. }
  23. }
  24. private void onTickInGui() {
  25.  
  26. }
  27. public EnumSet<TickType> ticks() {
  28. return null;
  29. }
  30. public String getLabel() {
  31. return null;
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment