Class DiskDriveBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.blockentity.BaseBlockEntity
com.refinedmods.refinedstorage.blockentity.NetworkNodeBlockEntity<DiskDriveNetworkNode>
com.refinedmods.refinedstorage.blockentity.DiskDriveBlockEntity
- All Implemented Interfaces:
INetworkNodeProxy<DiskDriveNetworkNode>
,IRedstoneConfigurable
,net.neoforged.neoforge.attachment.IAttachmentHolder
,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockEntitySynchronizationParameter<Long,
DiskDriveBlockEntity> static final BlockEntitySynchronizationParameter<Integer,
DiskDriveBlockEntity> static final net.neoforged.neoforge.client.model.data.ModelProperty<DiskState[]>
static final BlockEntitySynchronizationParameter<Integer,
DiskDriveBlockEntity> static final BlockEntitySynchronizationParameter<Long,
DiskDriveBlockEntity> static final BlockEntitySynchronizationParameter<Integer,
DiskDriveBlockEntity> static final BlockEntitySynchronizationParameter<Integer,
DiskDriveBlockEntity> Fields inherited from class com.refinedmods.refinedstorage.blockentity.NetworkNodeBlockEntity
REDSTONE_MODE
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionDiskDriveBlockEntity
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptioncreateNode
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) net.neoforged.neoforge.client.model.data.ModelData
void
readUpdate
(net.minecraft.nbt.CompoundTag tag) net.minecraft.nbt.CompoundTag
writeUpdate
(net.minecraft.nbt.CompoundTag tag) Methods inherited from class com.refinedmods.refinedstorage.blockentity.NetworkNodeBlockEntity
clearRemoved, getNode, getRedstoneMode, getRemovedNode, onRemovedNotDueToChunkUnload, setRedstoneMode
Methods inherited from class com.refinedmods.refinedstorage.blockentity.BaseBlockEntity
getDataManager, getUpdatePacket, getUpdateTag, handleUpdateTag, onChunkUnloaded, onDataPacket, setChanged, setRemoved
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, load, loadStatic, onlyOpCanSetNbt, saveAdditional, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setData, setLevel, triggerEvent
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
areAttachmentsCompatible, deserializeAttachments, getData, hasData, serializeAttachments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, hasData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
PRIORITY
-
COMPARE
-
WHITELIST_BLACKLIST
public static final BlockEntitySynchronizationParameter<Integer,DiskDriveBlockEntity> WHITELIST_BLACKLIST -
TYPE
-
ACCESS_TYPE
public static final BlockEntitySynchronizationParameter<AccessType,DiskDriveBlockEntity> ACCESS_TYPE -
STORED
-
CAPACITY
-
DISK_STATE_PROPERTY
public static final net.neoforged.neoforge.client.model.data.ModelProperty<DiskState[]> DISK_STATE_PROPERTY -
SPEC
-
-
Constructor Details
-
DiskDriveBlockEntity
public DiskDriveBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
writeUpdate
public net.minecraft.nbt.CompoundTag writeUpdate(net.minecraft.nbt.CompoundTag tag) - Overrides:
writeUpdate
in classBaseBlockEntity
-
readUpdate
public void readUpdate(net.minecraft.nbt.CompoundTag tag) - Overrides:
readUpdate
in classBaseBlockEntity
-
getModelData
@Nonnull public net.neoforged.neoforge.client.model.data.ModelData getModelData() -
createNode
@Nonnull public DiskDriveNetworkNode createNode(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Specified by:
createNode
in classNetworkNodeBlockEntity<DiskDriveNetworkNode>
-