Class AbstractDiskInterfaceBlockEntity
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.storagetransfer.StorageTransferNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
com.refinedmods.refinedstorage.common.storage.AbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
com.refinedmods.refinedstorage.common.storage.diskinterface.AbstractDiskInterfaceBlockEntity
- All Implemented Interfaces:
com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferListener
,ConfigurationCardTarget
,NetworkItemTargetBlockEntity
,BlockEntityWithDrops
,ExtendedMenuProvider<ResourceContainerData>
,NetworkNodeExtendedMenuProvider<ResourceContainerData>
,NetworkNodeMenuProvider
,PlayerAwareBlockEntity
,net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.MenuProvider
,net.minecraft.world.Nameable
public abstract class AbstractDiskInterfaceBlockEntity
extends AbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
implements com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferListener
-
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
FieldsFields inherited from class com.refinedmods.refinedstorage.common.storage.AbstractDiskContainerBlockEntity
diskInventory, disks, filter
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
ConstructorsModifierConstructorDescriptionprotected
AbstractDiskInterfaceBlockEntity
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addUpgrade
(net.minecraft.world.item.ItemStack upgradeStack) net.minecraft.world.inventory.AbstractContainerMenu
createMenu
(int syncId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) final net.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> getDrops()
net.minecraft.network.chat.Component
getName()
com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferMode
List
<net.minecraft.world.item.ItemStack> void
loadAdditional
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) void
onTransferSuccess
(int index) void
readConfiguration
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) void
saveAdditional
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) protected void
setFilters
(Set<ResourceKey> filters) protected void
setNormalizer
(UnaryOperator<ResourceKey> normalizer) void
setTransferMode
(com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferMode mode) void
writeConfiguration
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) Methods inherited from class com.refinedmods.refinedstorage.common.storage.AbstractDiskContainerBlockEntity
activenessChanged, containerInitialized, doesBlockStateChangeWarrantNetworkNodeUpdate, getDisk, getDiskInventory, getMenuCodec, getMenuData, getUpdatePacket, getUpdateTag, onClientDriveStateUpdated, setChanged, setLevel
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, overrideName, setBlockState, setCustomName, setPlacedBy, setRedstoneMode, updateActiveness
Methods inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity
clearRemoved, 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, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, 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 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
-
Field Details
-
AMOUNT_OF_DISKS
public static final int AMOUNT_OF_DISKS- See Also:
-
-
Constructor Details
-
AbstractDiskInterfaceBlockEntity
protected AbstractDiskInterfaceBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
setFilters
- Specified by:
setFilters
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
setNormalizer
- Specified by:
setNormalizer
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
loadAdditional
public void loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Overrides:
loadAdditional
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Overrides:
saveAdditional
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
readConfiguration
public void readConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Specified by:
readConfiguration
in interfaceConfigurationCardTarget
- Overrides:
readConfiguration
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
writeConfiguration
public void writeConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Specified by:
writeConfiguration
in interfaceConfigurationCardTarget
- Overrides:
writeConfiguration
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
getUpgrades
- Specified by:
getUpgrades
in interfaceConfigurationCardTarget
-
addUpgrade
public boolean addUpgrade(net.minecraft.world.item.ItemStack upgradeStack) - Specified by:
addUpgrade
in interfaceConfigurationCardTarget
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getName
in interfacenet.minecraft.world.Nameable
-
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) - Specified by:
createMenu
in interfacenet.minecraft.world.inventory.MenuConstructor
-
getDrops
public final net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDrops()- Specified by:
getDrops
in interfaceBlockEntityWithDrops
- Overrides:
getDrops
in classAbstractDiskContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferNetworkNode>
-
getTransferMode
public com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferMode getTransferMode() -
setTransferMode
public void setTransferMode(com.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferMode mode) -
onTransferSuccess
public void onTransferSuccess(int index) - Specified by:
onTransferSuccess
in interfacecom.refinedmods.refinedstorage.api.network.impl.node.storagetransfer.StorageTransferListener
-