Class GridBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
com.refinedmods.refinedstorage.common.support.network.BaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractRedstoneModeNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
com.refinedmods.refinedstorage.common.grid.AbstractGridBlockEntity
com.refinedmods.refinedstorage.common.grid.GridBlockEntity
- All Implemented Interfaces:
ConfigurationCardTarget
,Grid
,NetworkItemTargetBlockEntity
,ExtendedMenuProvider<GridData>
,NetworkNodeExtendedMenuProvider<GridData>
,NetworkNodeMenuProvider
,PlayerAwareBlockEntity
,net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.MenuProvider
public class GridBlockEntity
extends AbstractGridBlockEntity
implements NetworkNodeExtendedMenuProvider<GridData>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity
containers, mainNetworkNode
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
-
Constructor Summary
ConstructorDescriptionGridBlockEntity
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptioncreateMenu
(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, GridData> Methods inherited from class com.refinedmods.refinedstorage.common.grid.AbstractGridBlockEntity
addWatcher, createMainContainer, createOperations, doesBlockStateChangeWarrantNetworkNodeUpdate, getItemStorage, getResources, isGridActive, removeWatcher
Methods inherited from class com.refinedmods.refinedstorage.common.support.network.AbstractRedstoneModeNetworkNodeContainerBlockEntity
calculateActive, getFakePlayer, getRedstoneMode, isPlacedBy, loadAdditional, readConfiguration, saveAdditional, setPlacedBy, setRedstoneMode, writeConfiguration
Methods inherited from class com.refinedmods.refinedstorage.common.support.network.BaseNetworkNodeContainerBlockEntity
activenessChanged, applyImplicitComponents, collectImplicitComponents, doWork, getName, getNetworkForItem, setBlockState, updateActiveness
Methods inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity
clearRemoved, containerInitialized, createContainerProvider, getContainerProvider, setRemoved
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setChanged, setChanged, setComponents, setLevel, triggerEvent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.refinedmods.refinedstorage.common.api.configurationcard.ConfigurationCardTarget
addUpgradeItem, getUpgradeItems
Methods inherited from interface com.refinedmods.refinedstorage.common.support.containermenu.NetworkNodeMenuProvider
canOpen, getContainerProvider
-
Constructor Details
-
GridBlockEntity
public GridBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getMenuData
- Specified by:
getMenuData
in interfaceExtendedMenuProvider<GridData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf,GridData> getMenuCodec()- Specified by:
getMenuCodec
in interfaceExtendedMenuProvider<GridData>
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayName
in interfacenet.minecraft.world.MenuProvider
-
createMenu
@Nullable public AbstractGridContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) - Specified by:
createMenu
in interfacenet.minecraft.world.inventory.MenuConstructor
-