Class AbstractPortableGridBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.storage.portablegrid.AbstractPortableGridBlockEntity
All Implemented Interfaces:
ConfigurationCardTarget, TransferableBlockEntityEnergy, ExtendedMenuProvider<PortableGridData>, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider

public abstract class AbstractPortableGridBlockEntity extends net.minecraft.world.level.block.entity.BlockEntity implements ExtendedMenuProvider<PortableGridData>, ConfigurationCardTarget, TransferableBlockEntityEnergy
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource

    net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable Disk
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractPortableGridBlockEntity(PortableGridType type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    applyImplicitComponents(net.minecraft.core.component.DataComponentGetter components)
     
    protected void
    collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
     
    createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player)
     
    net.minecraft.network.chat.Component
     
     
    net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, PortableGridData>
     
     
     
    @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    net.minecraft.nbt.CompoundTag
    getUpdateTag(net.minecraft.core.HolderLookup.Provider registries)
     
    protected void
    loadAdditional(net.minecraft.world.level.storage.ValueInput input)
     
    protected void
     
    void
    readConfiguration(net.minecraft.world.level.storage.ValueInput input)
     
    protected void
    saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
     
    void
     
    void
    setLevel(net.minecraft.world.level.Level level)
     
    void
     
    void
    writeConfiguration(net.minecraft.world.level.storage.ValueOutput output)
     

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setComponents, setRemoved, triggerEvent, typeHolder

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ConfigurationCardTarget

    addUpgrade, getUpgrades

    Methods inherited from interface net.minecraft.core.TypedInstance

    is, is, is, is, is, tags
  • Field Details

    • disk

      protected @Nullable Disk disk
  • Constructor Details

    • AbstractPortableGridBlockEntity

      protected AbstractPortableGridBlockEntity(PortableGridType type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • setLevel

      public void setLevel(net.minecraft.world.level.Level level)
      Overrides:
      setLevel in class net.minecraft.world.level.block.entity.BlockEntity
    • loadAdditional

      protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • readConfiguration

      public void readConfiguration(net.minecraft.world.level.storage.ValueInput input)
      Specified by:
      readConfiguration in interface ConfigurationCardTarget
    • onClientDriveStateUpdated

      protected void onClientDriveStateUpdated()
    • saveAdditional

      protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • writeConfiguration

      public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output)
      Specified by:
      writeConfiguration in interface ConfigurationCardTarget
    • applyImplicitComponents

      protected void applyImplicitComponents(net.minecraft.core.component.DataComponentGetter components)
      Overrides:
      applyImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • collectImplicitComponents

      protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
      Overrides:
      collectImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getRedstoneMode

      public RedstoneMode getRedstoneMode()
    • setRedstoneMode

      public void setRedstoneMode(RedstoneMode redstoneMode)
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider
    • createMenu

      public @Nullable AbstractGridContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • getMenuData

      public PortableGridData getMenuData()
      Specified by:
      getMenuData in interface ExtendedMenuProvider<PortableGridData>
    • getMenuCodec

      public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, PortableGridData> getMenuCodec()
      Specified by:
      getMenuCodec in interface ExtendedMenuProvider<PortableGridData>
    • setChanged

      public void setChanged()
      Overrides:
      setChanged in class net.minecraft.world.level.block.entity.BlockEntity
    • getEnergyStorage

      public EnergyStorage getEnergyStorage()
      Specified by:
      getEnergyStorage in interface TransferableBlockEntityEnergy