Examples of EnumMobType


Examples of com.forgeessentials.api.EnumMobType

        OutputHandler.felog.info("Discovering and loading FEMob data...");
        // started ASM handling for the module loading.
        Set<ASMData> data = event.getAsmData().getAll(FEMob.class.getName());

        String className;
        EnumMobType type;
        for (ASMData asm : data)
        {
            Class<?> c = null;
            className = asm.getClassName();
View Full Code Here

Examples of net.minecraft.block.EnumMobType

  }
 
  @SuppressWarnings("rawtypes")
  public static boolean onPressurePlateInteract(BlockPressurePlate pp, World world, int x, int y, int z) {
    Class<? extends BlockPressurePlate> clazz = pp.getClass();
    EnumMobType type;
    try {
      Field f = clazz.getField(ObfuscationHelper.getRelevantMappings().get("blockPressurePlate_triggerMobType_fieldName"));
      f.setAccessible(true);
      type = (EnumMobType) f.get(pp);
    } catch (Exception e) {
View Full Code Here

Examples of net.minecraft.server.v1_6_R3.EnumMobType

            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, field3});
          }
          break;
        case PressurePlate:
          {
            EnumMobType field3 = ((EnumMobType)getField(parent, "a"));
            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, field3, parent.material});
          }
          break;
        case HugeMushroom:
          {
            int field4 = ((Integer)getField(parent, "a"));
            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, parent.material, field4});
          }
          break;
        case BlockStem:
          {
            Block field2;
            if (parent instanceof BlockStem) {
              field2 = ((Block)getField(parent, "blockFruit"));
            } else {
              field2 = Block.COBBLESTONE;
            }
            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, field2});
          }
          break;
        case IdTextureMaterialAndTransparent:
          {
            boolean field4 = ((Boolean)getField(BlockHalfTransparant.class, parent, "a")).booleanValue();
            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, parent.material, field4});
          }
          break;
        case IdTextureDataMaterialAndDrops:
          {
            int field3 = (Integer) getField(parent, "a");
            boolean field5 = ((Boolean)getField(parent, "b")).booleanValue();
            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, field3, parent.material, field5});
          }
          break;
        case IdNameMaterialAndMobType:
          {
            String name = (String) getField(BlockPressurePlateAbstract.class, parent, "a");
            EnumMobType mobs = (EnumMobType) getField(BlockPressurePlateBinary.class, parent, "a");
            proxy = (Block) enc.create(use.constructor, new Object[] {parent.id, name, parent.material, mobs});
          }
          break;
        case IdStringStringMaterialAndFlag:
          {
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.