Class StorageBlockBlockEntity
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.storage.StorageNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
com.refinedmods.refinedstorage.common.storage.storageblock.StorageBlockBlockEntity
- All Implemented Interfaces:
com.refinedmods.refinedstorage.api.network.impl.node.AbstractStorageContainerNetworkNode.Provider, ConfigurationCardTarget, StorageBlockEntity, NetworkItemTargetBlockEntity, ExtendedMenuProvider<StorageBlockData>, NetworkNodeExtendedMenuProvider<StorageBlockData>, NetworkNodeMenuProvider, PlayerAwareBlockEntity, 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, net.minecraft.world.Nameable
public class StorageBlockBlockEntity
extends AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
implements NetworkNodeExtendedMenuProvider<StorageBlockData>, StorageBlockEntity, com.refinedmods.refinedstorage.api.network.impl.node.AbstractStorageContainerNetworkNode.Provider
-
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
FieldsFields inherited from class AbstractBaseNetworkNodeContainerBlockEntity
tickerFields inherited from class AbstractNetworkNodeContainerBlockEntity
containers, mainNetworkNodeFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionStorageBlockBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, StorageBlockProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.inventory.AbstractContainerMenucreateMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) protected final ResourceContainernet.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, StorageBlockData> net.minecraft.network.chat.ComponentgetName()@Nullable UUIDvoidloadAdditional(net.minecraft.world.level.storage.ValueInput input) voidreadConfiguration(net.minecraft.world.level.storage.ValueInput input) resolve(int index) voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidsetExtractPriority(int priority) voidsetInsertPriority(int priority) voidsetLevel(net.minecraft.world.level.Level level) voidsetStorageId(UUID storageId) voidwriteConfiguration(net.minecraft.world.level.storage.ValueOutput output) Methods inherited from class AbstractBaseNetworkNodeContainerBlockEntity
activenessChanged, applyImplicitComponents, calculateActive, collectImplicitComponents, createMainContainer, doesBlockStateChangeWarrantNetworkNodeUpdate, doWork, getCustomName, getDebugNetworkId, getDisplayName, getFakePlayer, getNetworkForItem, getRedstoneMode, getUpdatePacket, getUpdateTag, hasRedstoneMode, initialize, initialize, isPlacedBy, overrideName, setBlockState, setChanged, setCustomName, setPlacedBy, setRedstoneMode, updateActiveness, updateDebugNetworkIdMethods inherited from class AbstractNetworkNodeContainerBlockEntity
clearRemoved, containerInitialized, createContainerProvider, getContainerProvider, setRemovedMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, 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, setChanged, setComponents, triggerEvent, typeHolderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationCardTarget
addUpgrade, getUpgradesMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
getPlainTextName, hasCustomNameMethods inherited from interface NetworkNodeMenuProvider
canOpen, getContainerProviderMethods inherited from interface net.minecraft.core.TypedInstance
is, is, is, is, is, tags
-
Field Details
-
configContainer
-
-
Constructor Details
-
StorageBlockBlockEntity
public StorageBlockBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, StorageBlockProvider provider)
-
-
Method Details
-
setLevel
public void setLevel(net.minecraft.world.level.Level level) - Overrides:
setLevelin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
-
loadAdditional
public void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
-
readConfiguration
public void readConfiguration(net.minecraft.world.level.storage.ValueInput input) - Specified by:
readConfigurationin interfaceConfigurationCardTarget- Overrides:
readConfigurationin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
-
saveAdditional
public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
-
writeConfiguration
public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output) - Specified by:
writeConfigurationin interfaceConfigurationCardTarget- Overrides:
writeConfigurationin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storage.StorageNetworkNode>
-
setStorageId
- Specified by:
setStorageIdin interfaceStorageBlockEntity
-
setInsertPriority
public void setInsertPriority(int priority) -
setExtractPriority
public void setExtractPriority(int priority) -
getStorageId
- Specified by:
getStorageIdin interfaceStorageBlockEntity
-
getFilterContainer
-
getMenuData
- Specified by:
getMenuDatain interfaceExtendedMenuProvider<StorageBlockData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, StorageBlockData> getMenuCodec()- Specified by:
getMenuCodecin interfaceExtendedMenuProvider<StorageBlockData>
-
resolve
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacenet.minecraft.world.Nameable
-
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:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-