Class PneumaticEnergyStorage

java.lang.Object
net.minecraftforge.energy.EnergyStorage
me.desht.pneumaticcraft.common.block.entity.PneumaticEnergyStorage
All Implemented Interfaces:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.Tag>, net.minecraftforge.energy.IEnergyStorage

public class PneumaticEnergyStorage extends net.minecraftforge.energy.EnergyStorage
  • Field Summary

    Fields inherited from class net.minecraftforge.energy.EnergyStorage

    capacity, energy, maxExtract, maxReceive
  • Constructor Summary

    Constructors
    Constructor
    Description
    PneumaticEnergyStorage(int capacity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    readFromNBT(net.minecraft.nbt.CompoundTag tag)
     
    void
    setCapacity(int capacity)
     
    void
    writeToNBT(net.minecraft.nbt.CompoundTag tag)
     

    Methods inherited from class net.minecraftforge.energy.EnergyStorage

    canExtract, canReceive, deserializeNBT, extractEnergy, getEnergyStored, getMaxEnergyStored, receiveEnergy, serializeNBT

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PneumaticEnergyStorage

      public PneumaticEnergyStorage(int capacity)
  • Method Details

    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag tag)
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag tag)
    • setCapacity

      public void setCapacity(int capacity)