Package hiiragi283.lib.block.entity
Class HTExtendedBlockEntity
-
- All Implemented Interfaces:
-
hiiragi283.lib.block.entity.HTAbstractBlockEntity,net.minecraft.core.TypedInstance,net.minecraft.util.debug.DebugValueSource,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension,net.neoforged.neoforge.common.extensions.TypedInstanceExtension,net.neoforged.neoforge.registries.datamaps.IWithData
public abstract class HTExtendedBlockEntity extends BlockEntity implements HTAbstractBlockEntity
-
-
Field Summary
Fields Modifier and Type Field Description private BlockStateblockStateprivate final Set<AttachmentType<?>>andClearAttachmentTypesToSyncprivate final BooleanisRemovedprivate final ClientboundBlockEntityDataPacketupdatePacketprivate final BlockEntityType<?>typeprivate final ModelDatamodelDataprivate final BlockPosblockPosprivate final CompoundTagpersistentDataprivate final StringnameForReportingprivate final Levellevel
-
Constructor Summary
Constructors Constructor Description HTExtendedBlockEntity(BlockEntityType<?> type, BlockPos worldPosition, BlockState blockState)
-
Method Summary
Modifier and Type Method Description final ProblemReportercreateReporter()final CompoundTagcreateReducedUpdateTag(HolderLookup.Provider registries)UnitwriteReducedUpdateTag(ValueOutput output)UnitreadUpdateTag(ValueInput input)final UnitsendUpdatePacket(ServerLevel level)UnitsetChanged()IntegergetComparatorOutput(BlockState state, Level level, BlockPos pos)ブロックのコンパレータ出力を返します。 UnitneighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, Boolean movedByPiston)隣接ブロックが更新された時に呼び出されます。 final ClientboundBlockEntityDataPacketgetUpdatePacket()final CompoundTaggetUpdateTag(HolderLookup.Provider registries)final UnithandleUpdateTag(ValueInput input)UnitonDataPacket(Connection net, ValueInput valueInput)-
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getAndClearAttachmentTypesToSync, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadWithComponents, preRemoveSideEffects, problemPath, removeComponentsFromTag, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setComponents, setLevel, setRemoved, triggerEvent -
Methods inherited from class hiiragi283.lib.block.entity.HTExtendedBlockEntity
getBlockPos, getLevel, getUpdatePacket -
Methods inherited from class net.neoforged.neoforge.common.extensions.IBlockEntityExtension
applyStructureRotation, getModelData, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate -
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.minecraft.core.TypedInstance
is, is, is, is, is, tags, typeHolder -
Methods inherited from class net.minecraft.util.debug.DebugValueSource
registerDebugValues -
Methods inherited from class net.neoforged.neoforge.registries.datamaps.IWithData
getData -
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
serializeAttachments -
Methods inherited from class hiiragi283.lib.block.entity.HTAbstractBlockEntity
getRegistryAccess, getServerLevel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createReporter
final ProblemReporter createReporter()
-
createReducedUpdateTag
final CompoundTag createReducedUpdateTag(HolderLookup.Provider registries)
-
writeReducedUpdateTag
Unit writeReducedUpdateTag(ValueOutput output)
-
readUpdateTag
Unit readUpdateTag(ValueInput input)
-
sendUpdatePacket
final Unit sendUpdatePacket(ServerLevel level)
-
setChanged
Unit setChanged()
-
getComparatorOutput
Integer getComparatorOutput(BlockState state, Level level, BlockPos pos)
ブロックのコンパレータ出力を返します。
-
neighborChanged
Unit neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, Boolean movedByPiston)
隣接ブロックが更新された時に呼び出されます。
-
getUpdatePacket
final ClientboundBlockEntityDataPacket getUpdatePacket()
-
getUpdateTag
final CompoundTag getUpdateTag(HolderLookup.Provider registries)
-
handleUpdateTag
final Unit handleUpdateTag(ValueInput input)
-
onDataPacket
Unit onDataPacket(Connection net, ValueInput valueInput)
-
-
-
-