Class ItemBlockEnergyStorage

java.lang.Object
com.refinedmods.refinedstorage.api.network.impl.energy.AbstractProxyEnergyStorage
com.refinedmods.refinedstorage.api.network.impl.energy.AbstractListeningEnergyStorage
com.refinedmods.refinedstorage.common.support.energy.ItemBlockEnergyStorage
All Implemented Interfaces:
EnergyStorage

public class ItemBlockEnergyStorage extends com.refinedmods.refinedstorage.api.network.impl.energy.AbstractListeningEnergyStorage
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemBlockEnergyStorage(EnergyStorage energyStorage, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onStoredChanged(long stored)
     
    static void
    readFromTag(EnergyStorage energyStorage, net.minecraft.nbt.CompoundTag tag)
     
    static void
    writeToTag(net.minecraft.nbt.CompoundTag tag, long stored)
     

    Methods inherited from class com.refinedmods.refinedstorage.api.network.impl.energy.AbstractListeningEnergyStorage

    extract, receive

    Methods inherited from class com.refinedmods.refinedstorage.api.network.impl.energy.AbstractProxyEnergyStorage

    getCapacity, getStored

    Methods inherited from class java.lang.Object

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

    • ItemBlockEnergyStorage

      public ItemBlockEnergyStorage(EnergyStorage energyStorage, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType)
  • Method Details

    • onStoredChanged

      protected void onStoredChanged(long stored)
      Specified by:
      onStoredChanged in class com.refinedmods.refinedstorage.api.network.impl.energy.AbstractListeningEnergyStorage
    • writeToTag

      public static void writeToTag(net.minecraft.nbt.CompoundTag tag, long stored)
    • readFromTag

      public static void readFromTag(EnergyStorage energyStorage, net.minecraft.nbt.CompoundTag tag)