Class AbstractGridBlockEntity
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.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
com.refinedmods.refinedstorage.common.grid.AbstractGridBlockEntity
- All Implemented Interfaces:
PreviewProvider
,ConfigurationCardTarget
,Grid
,NetworkItemTargetBlockEntity
,PlayerAwareBlockEntity
,net.minecraft.world.Nameable
- Direct Known Subclasses:
CraftingGridBlockEntity
,GridBlockEntity
,PatternGridBlockEntity
public abstract class AbstractGridBlockEntity
extends AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
implements Grid
-
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.support.network.AbstractBaseNetworkNodeContainerBlockEntity
ticker
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
ModifierConstructorDescriptionprotected
AbstractGridBlockEntity
(net.minecraft.world.level.block.entity.BlockEntityType<? extends AbstractGridBlockEntity> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, long energyUsage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWatcher
(GridWatcher watcher, Class<? extends Actor> actorType) protected InWorldNetworkNodeContainer
createMainContainer
(com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode networkNode) createOperations
(ResourceType resourceType, net.minecraft.server.level.ServerPlayer player) protected boolean
doesBlockStateChangeWarrantNetworkNodeUpdate
(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) getPreview
(ResourceKey resource, long amount) getResources
(Class<? extends Actor> actorType) boolean
void
removeWatcher
(GridWatcher watcher) boolean
startTask
(ResourceKey resource, long amount) Methods inherited from class com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity
activenessChanged, applyImplicitComponents, calculateActive, collectImplicitComponents, doWork, getCustomName, getDisplayName, getFakePlayer, getNetworkForItem, getRedstoneMode, hasRedstoneMode, initialize, initialize, isPlacedBy, loadAdditional, overrideName, readConfiguration, saveAdditional, setBlockState, setCustomName, setLevel, setPlacedBy, setRedstoneMode, updateActiveness, writeConfiguration
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, 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
addUpgrade, getUpgrades
Methods inherited from interface net.minecraft.world.Nameable
getName, hasCustomName
-
Constructor Details
-
AbstractGridBlockEntity
protected AbstractGridBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<? extends AbstractGridBlockEntity> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, long energyUsage)
-
-
Method Details
-
createMainContainer
protected InWorldNetworkNodeContainer createMainContainer(com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode networkNode) - Overrides:
createMainContainer
in classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
-
getResources
- Specified by:
getResources
in interfaceGrid
-
getAutocraftableResources
- Specified by:
getAutocraftableResources
in interfaceGrid
-
createOperations
public GridOperations createOperations(ResourceType resourceType, net.minecraft.server.level.ServerPlayer player) - Specified by:
createOperations
in interfaceGrid
-
isGridActive
public boolean isGridActive()- Specified by:
isGridActive
in interfaceGrid
-
getItemStorage
- Specified by:
getItemStorage
in interfaceGrid
-
addWatcher
- Specified by:
addWatcher
in interfaceGrid
-
removeWatcher
- Specified by:
removeWatcher
in interfaceGrid
-
getPreview
- Specified by:
getPreview
in interfacePreviewProvider
-
startTask
- Specified by:
startTask
in interfacePreviewProvider
-
doesBlockStateChangeWarrantNetworkNodeUpdate
protected boolean doesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) - Overrides:
doesBlockStateChangeWarrantNetworkNodeUpdate
in classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
-