Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package shelter.common;
- import java.util.EnumSet;
- import net.minecraft.client.Minecraft;
- import net.minecraft.item.ItemStack;
- import cpw.mods.fml.client.FMLClientHandler;
- import cpw.mods.fml.common.ITickHandler;
- import cpw.mods.fml.common.TickType;
- public class ArmorTicker implements ITickHandler {
- public void tickStart(EnumSet<TickType> type, Object... tickData) {
- }
- public void tickEnd(EnumSet<TickType> type, Object... tickData) {
- }
- private void onTickInGame() {
- ItemStack boots = Minecraft.getMinecraft().thePlayer.inventory.armorItemInSlot(4);
- if(boots != null && boots.itemID == shelter.common.Shelter.copperBoots.itemID) {
- Minecraft.getMinecraft().thePlayer.fallDistance = 0.0F;
- }
- }
- private void onTickInGui() {
- }
- public EnumSet<TickType> ticks() {
- return null;
- }
- public String getLabel() {
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment