Class AutocraftingMonitorBlockEntity
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.SimpleNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.SimpleNetworkNode>
com.refinedmods.refinedstorage.common.autocrafting.monitor.AutocraftingMonitorBlockEntity
- All Implemented Interfaces:
TaskStatusProvider
,ConfigurationCardTarget
,NetworkItemTargetBlockEntity
,ExtendedMenuProvider<AutocraftingMonitorData>
,NetworkNodeExtendedMenuProvider<AutocraftingMonitorData>
,NetworkNodeMenuProvider
,PlayerAwareBlockEntity
,net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.MenuProvider
,net.minecraft.world.Nameable
public class AutocraftingMonitorBlockEntity
extends AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.SimpleNetworkNode>
implements NetworkNodeExtendedMenuProvider<AutocraftingMonitorData>
-
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
ConstructorDescriptionAutocraftingMonitorBlockEntity
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
activenessChanged
(boolean newActive) void
addListener
(TaskStatusListener listener) void
addWatcher
(AutocraftingMonitorWatcher watcher) void
void
net.minecraft.world.inventory.AbstractContainerMenu
createMenu
(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) protected boolean
doesBlockStateChangeWarrantNetworkNodeUpdate
(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) net.minecraft.network.codec.StreamEncoder
<net.minecraft.network.RegistryFriendlyByteBuf, AutocraftingMonitorData> net.minecraft.network.chat.Component
getName()
boolean
void
removeListener
(TaskStatusListener listener) void
removeWatcher
(AutocraftingMonitorWatcher watcher) void
Methods inherited from class com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity
applyImplicitComponents, calculateActive, collectImplicitComponents, createMainContainer, 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.MenuProvider
getDisplayName
Methods inherited from interface net.minecraft.world.Nameable
hasCustomName
Methods inherited from interface com.refinedmods.refinedstorage.common.support.containermenu.NetworkNodeMenuProvider
canOpen, getContainerProvider
-
Constructor Details
-
AutocraftingMonitorBlockEntity
public AutocraftingMonitorBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
activenessChanged
protected void activenessChanged(boolean newActive) - Overrides:
activenessChanged
in classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.SimpleNetworkNode>
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getName
in interfacenet.minecraft.world.Nameable
-
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.SimpleNetworkNode>
-
getMenuData
- Specified by:
getMenuData
in interfaceExtendedMenuProvider<AutocraftingMonitorData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf,AutocraftingMonitorData> getMenuCodec()- Specified by:
getMenuCodec
in interfaceExtendedMenuProvider<AutocraftingMonitorData>
-
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu 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
-
getStatuses
- Specified by:
getStatuses
in interfaceTaskStatusProvider
-
addListener
- Specified by:
addListener
in interfaceTaskStatusProvider
-
removeListener
- Specified by:
removeListener
in interfaceTaskStatusProvider
-
cancel
- Specified by:
cancel
in interfaceTaskStatusProvider
-
cancelAll
public void cancelAll()- Specified by:
cancelAll
in interfaceTaskStatusProvider
-
testUpdate
public void testUpdate()- Specified by:
testUpdate
in interfaceTaskStatusProvider
-
addWatcher
-
removeWatcher
-
isAutocraftingMonitorActive
public boolean isAutocraftingMonitorActive()
-