Search in sources :

Example 1 with LongEnergyStorage

use of com.cjm721.overloaded.storage.energy.LongEnergyStorage in project Overloaded by CJ-MC-Mods.

the class LongEnergyWrapper method getStorage.

@Nonnull
private LongEnergyStorage getStorage() {
    NBTTagCompound compound = stack.getTagCompound().getCompoundTag("EnergyStorage");
    LongEnergyStorage storage = new LongEnergyStorage();
    storage.readFromNBT(compound);
    return storage;
}
Also used : LongEnergyStorage(com.cjm721.overloaded.storage.energy.LongEnergyStorage) NBTTagCompound(net.minecraft.nbt.NBTTagCompound) Nonnull(javax.annotation.Nonnull)

Aggregations

LongEnergyStorage (com.cjm721.overloaded.storage.energy.LongEnergyStorage)1 Nonnull (javax.annotation.Nonnull)1 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)1