Ejemplo n.º 1
0
 public static void getMaterialAndFluidModifiers(
     List<DimletKey> modifiers, List<BlockMeta> blocks, List<Block> fluids) {
   if (modifiers != null) {
     for (DimletKey modifier : modifiers) {
       if (modifier.getType() == DimletType.DIMLET_MATERIAL) {
         BlockMeta block = DimletObjectMapping.idToBlock.get(modifier);
         blocks.add(block);
       } else if (modifier.getType() == DimletType.DIMLET_LIQUID) {
         Block fluid = DimletObjectMapping.idToFluid.get(modifier);
         fluids.add(fluid);
       }
     }
   }
 }
Ejemplo n.º 2
0
 public void injectDimlet(DimletKey key) {
   DimletType type = key.getType();
   IDimletType itype = type.dimletType;
   if (itype.isInjectable()) {
     addToCost(key);
     itype.inject(key, this);
   }
 }