Class HTConfigurableBlockEntity
-
- All Implemented Interfaces:
-
hiiragi283.core.api.block.entity.HTAbstractBlockEntity,hiiragi283.core.api.block.entity.HTOwnedBlockEntity,hiiragi283.core.api.block.entity.HTSoundPlayerBlockEntity,hiiragi283.core.api.storage.HTHandlerProvider,hiiragi283.core.api.storage.energy.HTEnergyHandler,hiiragi283.core.api.storage.energy.HTSidedEnergyStorage,hiiragi283.core.api.storage.fluid.HTFluidHandler,hiiragi283.core.api.storage.fluid.HTSidedFluidHandler,hiiragi283.core.api.storage.item.HTItemHandler,hiiragi283.core.api.storage.item.HTSidedItemHandler,hiiragi283.ragium.common.storge.holder.HTSlotInfoProvider,net.minecraft.world.Nameable,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension,net.neoforged.neoforge.energy.IEnergyStorage,net.neoforged.neoforge.fluids.capability.IFluidHandler,net.neoforged.neoforge.items.IItemHandler
public abstract class HTConfigurableBlockEntity extends HTBlockEntity implements HTSlotInfoProvider
搬入出の面を制御可能なHTBlockEntityの拡張クラス
-
-
Field Summary
Fields Modifier and Type Field Description private final HTSlotInfoComponentmachineSlotprivate final Integerticksprivate final List<HTBlockEntityComponent>componentsprivate UUIDownerIdprivate final Integerslotsprivate final BlockEntityType<?>typeprivate final ModelDatamodelDataprivate final BlockPosblockPosprivate final CompoundTagpersistentDataprivate final Integertanksprivate final IntegermaxEnergyStoredprivate final IntegerenergyStoredprivate BlockStateblockStateprivate final BooleanisRemovedprivate final ClientboundBlockEntityDataPacketupdatePacketprivate final Levellevelprivate final Componentnameprivate final ComponentcustomNameprivate final ComponentdisplayName
-
Constructor Summary
Constructors Constructor Description HTConfigurableBlockEntity(HTDeferredBlockEntityType<?> type, BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description final HTSlotInfoComponentgetMachineSlot()final IntegergetTicks()final List<HTBlockEntityComponent>getComponents()final UUIDgetOwnerId()final UnitsetOwnerId(UUID value)final HTSlotInfogetSlotInfo(Direction side)-
Methods inherited from class hiiragi283.core.api.storage.item.HTSidedItemHandler
extractItem, getItemSideFor, getSlotLimit, getSlots, getSlots, getStackInSlot, insertItem, isItemValid -
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadWithComponents, onlyOpCanSetNbt, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setComponents, triggerEvent -
Methods inherited from class net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate -
Methods inherited from class hiiragi283.core.common.block.entity.HTBlockEntity
addComponent, getBlockPos, getCustomName, getCustomName, getEnergyBattery, getEnergyStorage, getFluidHandler, getFluidTanks, getItemHandler, getItemSlots, getLevel, getName, getName, getOwner, handleUpdateTag, hasEnergyStorage, hasFluidHandler, hasItemHandler, initReducedUpdateTag, onBlockRemoved, openMenu -
Methods inherited from class hiiragi283.core.api.storage.fluid.HTSidedFluidHandler
drain, drain, fill, getFluidInTank, getFluidSideFor, getTankCapacity, getTanks, getTanks, isFluidValid -
Methods inherited from class hiiragi283.core.api.storage.energy.HTSidedEnergyStorage
canExtract, canReceive, extractEnergy, getEnergySideFor, getEnergyStored, getEnergyStored, getMaxEnergyStored, getMaxEnergyStored, receiveEnergy -
Methods inherited from class hiiragi283.core.common.block.entity.HTExtendedBlockEntity
getComparatorOutput, getDeferredType, getReducedUpdateTag, getUpdatePacket, getUpdatePacket, getUpdateTag, handleUpdateTag, neighborChanged, onDataPacket, onRemove, onUpdateLevel, onUpdatedState, sendUpdatePacket, setBlockState, setBlockState, setChanged, setLevel, setRemoved -
Methods inherited from class net.minecraft.world.Nameable
getDisplayName, hasCustomName -
Methods inherited from class net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getData, getExistingData, getExistingData, getExistingDataOrNull, getExistingDataOrNull, hasAttachments, hasData, hasData, removeData, removeData, setData, setData, syncData, syncData -
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
serializeAttachments -
Methods inherited from class hiiragi283.core.api.block.entity.HTAbstractBlockEntity
getRegistryAccess, getServerLevel -
Methods inherited from class hiiragi283.core.api.storage.energy.HTEnergyHandler
extractEnergy, getEnergyStored, getMaxEnergyStored, receiveEnergy -
Methods inherited from class hiiragi283.core.api.storage.fluid.HTFluidHandler
drain, drain, fill, getFluidInTank, getFluidTank, getTankCapacity, getTanks, isFluidValid -
Methods inherited from class hiiragi283.core.api.storage.item.HTItemHandler
extractItem, getItemSlot, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValid -
Methods inherited from class hiiragi283.core.api.block.entity.HTOwnedBlockEntity
getFakePlayer, getOwnerName, getOwnerOrFake, getOwnerPlayer, getOwnerPlayer -
Methods inherited from class hiiragi283.core.api.block.entity.HTSoundPlayerBlockEntity
getSoundPos, getSoundSource, playSound -
Methods inherited from class hiiragi283.ragium.common.storge.holder.HTSlotInfoProvider
getSlotInfoText -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMachineSlot
final HTSlotInfoComponent getMachineSlot()
-
getComponents
final List<HTBlockEntityComponent> getComponents()
-
getOwnerId
final UUID getOwnerId()
-
setOwnerId
final Unit setOwnerId(UUID value)
-
getSlotInfo
final HTSlotInfo getSlotInfo(Direction side)
-
-
-
-