Class HTBlockEntity

  • 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 , 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 HTBlockEntity
    extends HTExtendedBlockEntity implements Nameable, HTEnergyHandler, HTFluidHandler, HTHandlerProvider, HTItemHandler, HTOwnedBlockEntity, HTSoundPlayerBlockEntity
                        

    キャパビリティやオーナーを保持するHTExtendedBlockEntityの拡張クラス

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getTicks()
      final List<HTBlockEntityComponent> getComponents()
      final UUID getOwnerId()
      final Unit setOwnerId(UUID value)
      Unit onBlockRemoved(BlockState state, Level level, BlockPos pos)
      final Unit addComponent(HTBlockEntityComponent component)
      Unit initReducedUpdateTag(HTValueOutput output)
      Unit handleUpdateTag(HTValueInput input)
      final Component getName()
      final Component getCustomName()
      final Unit openMenu(Player player)
      UUID getOwner() 保持している所有者のUUIDを取得します。
      Boolean hasFluidHandler()
      final List<HTResourceSlot<HTFluidResourceType>> getFluidTanks(Direction side) 指定したからHTFluidTankの一覧を取得します。
      final IFluidHandler getFluidHandler(Direction direction) 指定したからIFluidHandlerを取得します。
      final Boolean hasEnergyStorage()
      final HTEnergyBattery getEnergyBattery(Direction side) 指定したからHTEnergyBatteryを取得します。
      final IEnergyStorage getEnergyStorage(Direction direction) 指定したからIEnergyStorageを取得します。
      final Boolean hasItemHandler()
      final List<HTResourceSlot<HTItemResourceType>> getItemSlots(Direction side) 指定したからHTItemSlotの一覧を取得します。
      final IItemHandler getItemHandler(Direction direction) 指定したからIItemHandlerを取得します。
      final static Unit tickClient(Level level, BlockPos pos, BlockState state, HTBlockEntity blockEntity)
      final static Unit tickServer(Level level, BlockPos pos, BlockState state, HTBlockEntity blockEntity)
      • 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

        getBlockPos, getCustomName, getLevel, getName
      • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait