Class MultiBlockCoreEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
team.lodestar.lodestone.systems.blockentity.LodestoneBlockEntity
team.lodestar.lodestone.systems.multiblock.MultiBlockCoreEntity
- All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>,IMultiBlockCore
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsFields inherited from class team.lodestar.lodestone.systems.blockentity.LodestoneBlockEntity
needsSyncFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionMultiBlockCoreEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, MultiBlockStructure structure, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Methods inherited from class team.lodestar.lodestone.systems.blockentity.LodestoneBlockEntity
getUpdatePacket, getUpdateTag, handleUpdateTag, init, load, onClone, onDataPacket, onEntityInside, onNeighborUpdate, onPlace, onUse, tickMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveAdditional, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface team.lodestar.lodestone.systems.multiblock.IMultiBlockCore
destroyMultiblock, isModular, setupMultiblock
-
Field Details
-
structure
-
-
Constructor Details
-
MultiBlockCoreEntity
public MultiBlockCoreEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, MultiBlockStructure structure, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getStructure
- Specified by:
getStructurein interfaceIMultiBlockCore- Returns:
- The multiblock structure created upon placement. Return null to disable.
-
getComponentPositions
- Specified by:
getComponentPositionsin interfaceIMultiBlockCore
-
onBreak
public void onBreak(@Nullable @Nullable net.minecraft.world.entity.player.Player player) - Overrides:
onBreakin classLodestoneBlockEntity
-