Class AbstractPortableGridBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.storage.portablegrid.AbstractPortableGridBlockEntity
- All Implemented Interfaces:
ConfigurationCardTarget, TransferableBlockEntityEnergy, ExtendedMenuProvider<PortableGridData>, 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
public abstract class AbstractPortableGridBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements ExtendedMenuProvider<PortableGridData>, ConfigurationCardTarget, TransferableBlockEntityEnergy
-
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 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPortableGridBlockEntity(PortableGridType type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyImplicitComponents(net.minecraft.core.component.DataComponentGetter components) protected voidcollectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) @Nullable AbstractGridContainerMenucreateMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) net.minecraft.network.chat.Componentnet.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, PortableGridData> @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> net.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider registries) protected voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) protected voidvoidreadConfiguration(net.minecraft.world.level.storage.ValueInput input) protected voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidvoidsetLevel(net.minecraft.world.level.Level level) voidsetRedstoneMode(RedstoneMode redstoneMode) voidwriteConfiguration(net.minecraft.world.level.storage.ValueOutput output) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, 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, setBlockState, setChanged, setComponents, setRemoved, 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.core.TypedInstance
is, is, is, is, is, tags
-
Field Details
-
disk
-
-
Constructor Details
-
AbstractPortableGridBlockEntity
protected AbstractPortableGridBlockEntity(PortableGridType type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
setLevel
public void setLevel(net.minecraft.world.level.Level level) - Overrides:
setLevelin classnet.minecraft.world.level.block.entity.BlockEntity
-
loadAdditional
protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
readConfiguration
public void readConfiguration(net.minecraft.world.level.storage.ValueInput input) - Specified by:
readConfigurationin interfaceConfigurationCardTarget
-
onClientDriveStateUpdated
protected void onClientDriveStateUpdated() -
saveAdditional
protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
writeConfiguration
public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output) - Specified by:
writeConfigurationin interfaceConfigurationCardTarget
-
applyImplicitComponents
protected void applyImplicitComponents(net.minecraft.core.component.DataComponentGetter components) - Overrides:
applyImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
collectImplicitComponents
protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) - Overrides:
collectImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getRedstoneMode
-
setRedstoneMode
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-
createMenu
public @Nullable AbstractGridContainerMenu 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
-
getMenuData
- Specified by:
getMenuDatain interfaceExtendedMenuProvider<PortableGridData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, PortableGridData> getMenuCodec()- Specified by:
getMenuCodecin interfaceExtendedMenuProvider<PortableGridData>
-
setChanged
public void setChanged()- Overrides:
setChangedin classnet.minecraft.world.level.block.entity.BlockEntity
-
getEnergyStorage
- Specified by:
getEnergyStoragein interfaceTransferableBlockEntityEnergy
-