Package eu.ha3.matmos.game.data.modules

Source Code of eu.ha3.matmos.game.data.modules.M__ply_armor

package eu.ha3.matmos.game.data.modules;

import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.item.ItemStack;
import eu.ha3.matmos.engine.core.interfaces.Data;
import eu.ha3.matmos.game.data.abstractions.module.Module;
import eu.ha3.matmos.game.data.abstractions.module.ModuleProcessor;

/*
--filenotes-placeholder
*/

public class M__ply_armor extends ModuleProcessor implements Module
{
  public M__ply_armor(Data data)
  {
    super(data, "ply_armor");
  }
 
  @Override
  protected void doProcess()
  {
    EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
   
    for (int i = 0; i < 4; i++)
    {
      ItemStack item = player.inventory.armorInventory[i];
      ItemProcessorHelper.setValue(this, item, Integer.toString(i));
    }
  }
}
TOP

Related Classes of eu.ha3.matmos.game.data.modules.M__ply_armor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.