List of usage examples for net.minecraftforge.common.util INBTSerializable interface-usage
From source file buildcraft.lib.bpt.MultiBlueprint.java
public class MultiBlueprint<B extends BlueprintBase> implements INBTSerializable<NBTTagCompound> { private final B[] blueprints; private final Function<NBTTagCompound, B> loader; public static MultiBlueprint<Blueprint> createMultiBlueprint(Blueprint[] blueprints) { return new MultiBlueprint<>(blueprints, Blueprint::new);
From source file buildcraft.lib.fluids.Tank.java
/** Provides a useful implementation of a fluid tank that can save + load, and has a few helper funtions. * * Can optionally specify a filter to only allow a limited types of fluids in the tank. */ public class Tank extends FluidTank implements IFluidHandlerAdv, INBTSerializable<NBTTagCompound> { public static final String DEFAULT_HELP_KEY = "buildcraft.help.tank.generic";
From source file buildcraft.lib.fluids.TankManager.java
/** Provides a simple way to save+load and send+receive data for any number of tanks. This also attempts to fill all of * the tanks one by one via the {@link #fill(FluidStack, boolean)} and * {@link #drain(FluidStack, boolean)} methods. */ public class TankManager<T extends Tank> extends ForwardingList<T> implements IFluidHandlerAdv, INBTSerializable<NBTTagCompound> {
From source file buildcraft.lib.misc.data.AverageDouble.java
public class AverageDouble implements INBTSerializable<NBTTagCompound> { private double[] data; private int pos, precise; private double averageRaw, tickValue; public AverageDouble(int precise) {
From source file com.buuz135.industrial.api.conveyor.ConveyorUpgrade.java
public abstract class ConveyorUpgrade implements INBTSerializable<NBTTagCompound> { public static Cuboid EMPTY_BB = new Cuboid(0, 0, 0, 0, 0, 0); private IConveyorContainer container; private ConveyorUpgradeFactory factory; private EnumFacing side;
From source file com.fatality.skillcraft.common.skills.data.SkillProvider.java
public class SkillProvider implements ICapabilityProvider, INBTSerializable<NBTTagCompound> { @CapabilityInject(ISkillCapability.class) public static Capability<ISkillCapability> SKILLS = null; private ISkillCapability inst = null;
From source file com.voxmods.nullautomation.machine.MachineEnergyBuffer.java
public class MachineEnergyBuffer implements ITeslaConsumer, ITeslaProducer, ITeslaHolder, INBTSerializable<NBTTagCompound> { /** * The amount of stored Tesla power. */
From source file daxum.temporalconvergence.power.PowerDimension.java
@Deprecated //Currently unused, probably will be repurposed later public class PowerDimension implements INBTSerializable<NBTTagCompound> { //These four values don't need to be saved. public static final int MAX_INSTABILITY = 300; //Determines how long a dimension can stay above maxIoRate before it destabilizes. public final int id; //The unique id for the dimension. Use this to obtain the proper dimension using get below.
From source file daxum.temporalconvergence.power.ProviderTree.java
public class ProviderTree implements INBTSerializable<NBTTagList> { public static final AxisAlignedBB SINGLE_BLOCK_AABB = new AxisAlignedBB(0.0, 0.0, 0.0, 1.0, 1.0, 1.0); private TreeNode root = new TreeNode(new AxisAlignedBB(-30000000, 0, -30000000, 30000000, 256, 30000000)); public List<ProviderData> getIntersectingProviders(PowerType powerType, AxisAlignedBB receiverBox) { List<ProviderData> posList = new ArrayList();
From source file daxum.temporalconvergence.world.futurecity.FutureCityGenerator.java
public class FutureCityGenerator implements INBTSerializable<NBTTagList> { public static final int MAX_CITY_SIZE = 32; private static final int MIN_CITY_SIZE = 16; public static final int EMPTY_ID = 0; public static final int BORDER_ID = -1;