Examples of EnumToolMaterial


Examples of net.minecraft.server.v1_6_R3.EnumToolMaterial

  public static void replaceSpades() {
    for (int i = 0; i < Item.byId.length; i++) {
      if (Item.byId[i] != null) {
        if (Item.byId[i] instanceof ItemSpade) {
          ItemSpade spade = (ItemSpade)Item.byId[i];
          EnumToolMaterial etm = null;
          Field tool = null;
          try {
            tool = ItemTool.class.getDeclaredField("b");
            tool.setAccessible(true);
            etm = (EnumToolMaterial) tool.get(spade);
View Full Code Here

Examples of net.minecraft.server.v1_6_R3.EnumToolMaterial

  public static void replacePickaxes() {
    for (int i = 0; i < Item.byId.length; i++) {
      if (Item.byId[i] != null) {
        if (Item.byId[i] instanceof ItemPickaxe) {
          ItemPickaxe pickaxe = (ItemPickaxe)Item.byId[i];
          EnumToolMaterial etm = null;
          try {
            Field tool = ItemTool.class.getDeclaredField("b");
            tool.setAccessible(true);
            etm = (EnumToolMaterial) tool.get(pickaxe);
          } catch (Exception e) {
View Full Code Here
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.