Package pneumaticCraft.common.block.tubes

Examples of pneumaticCraft.common.block.tubes.TubeModule.readFromNBT()


        modules = new TubeModule[6];
        NBTTagList moduleList = nbt.getTagList("modules", 10);
        for(int i = 0; i < moduleList.tagCount(); i++) {
            NBTTagCompound moduleTag = moduleList.getCompoundTagAt(i);
            TubeModule module = ModuleRegistrator.getModule(moduleTag.getString("type"));
            module.readFromNBT(moduleTag);
            setModule(module, ForgeDirection.getOrientation(moduleTag.getInteger("side")));
        }
    }

    @Override
View Full Code Here


            NBTTagList moduleList = accessor.getNBTData().getTagList("modules", 10);
            for(int i = 0; i < moduleList.tagCount(); i++) {
                NBTTagCompound moduleTag = moduleList.getCompoundTagAt(i);
                if(dir == ForgeDirection.getOrientation(moduleTag.getInteger("side"))) {
                    TubeModule module = ModuleRegistrator.getModule(moduleTag.getString("type"));
                    module.readFromNBT(moduleTag);
                    module.addInfo(currenttip);
                }
            }
        }
        return currenttip;
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.