Class TileEntityDecorationController
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.minecolonies.core.tileentities.TileEntityDecorationController
- All Implemented Interfaces:
com.ldtteam.structurize.api.util.IRotatableBlockEntity,com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE,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>
public class TileEntityDecorationController
extends net.minecraft.world.level.block.entity.BlockEntity
implements com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE, com.ldtteam.structurize.api.util.IRotatableBlockEntity
-
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
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
TAG_BLUEPRINTDATA, TAG_CORNER_ONE, TAG_CORNER_TWO, TAG_PACK, TAG_PATH, TAG_POS_TAG_MAP, TAG_SCHEMATIC_NAME, TAG_TAG_NAME, TAG_TAG_NAME_LIST, TAG_TAG_POSFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionTileEntityDecorationController(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the mirroring setting of the controller.net.minecraft.world.level.block.RotationGet the rotation of the controller.net.minecraft.util.Tuple<net.minecraft.core.BlockPos,net.minecraft.core.BlockPos> net.minecraft.core.BlockPosnet.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket@NotNull net.minecraft.nbt.CompoundTagvoidload(@NotNull net.minecraft.nbt.CompoundTag compound) voidmirror(net.minecraft.world.level.block.Mirror mirror) voidonDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet) voidreadSchematicDataFromNBT(net.minecraft.nbt.CompoundTag compound) voidrotate(net.minecraft.world.level.block.Rotation rotationIn) voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag compound) voidsetBlueprintPath(String filePath) voidvoidsetPackName(String packName) voidsetPositionedTags(Map<net.minecraft.core.BlockPos, List<String>> positionedTags) voidsetSchematicCorners(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, 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 com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
addTag, getInWorldCorners, getRealWorldPos, getWorldTagNamePosMap, getWorldTagPosMap, removeTag, writeSchematicDataToNBTMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
-
Constructor Details
-
TileEntityDecorationController
public TileEntityDecorationController(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getPackName
- Specified by:
getPackNamein interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
getBlueprintPath
- Specified by:
getBlueprintPathin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
getSchematicName
- Specified by:
getSchematicNamein interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
setSchematicName
- Specified by:
setSchematicNamein interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
setChanged
public void setChanged()- Overrides:
setChangedin classnet.minecraft.world.level.block.entity.BlockEntity
-
getPositionedTags
- Specified by:
getPositionedTagsin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
setPositionedTags
- Specified by:
setPositionedTagsin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
getSchematicCorners
public net.minecraft.util.Tuple<net.minecraft.core.BlockPos,net.minecraft.core.BlockPos> getSchematicCorners()- Specified by:
getSchematicCornersin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
setSchematicCorners
public void setSchematicCorners(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) - Specified by:
setSchematicCornersin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
readSchematicDataFromNBT
public void readSchematicDataFromNBT(net.minecraft.nbt.CompoundTag compound) - Specified by:
readSchematicDataFromNBTin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
load
public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
public void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
@Nullable public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Specified by:
getUpdatePacketin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
setBlueprintPath
- Specified by:
setBlueprintPathin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
setPackName
- Specified by:
setPackNamein interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
getUpdateTag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet) - Specified by:
onDataPacketin interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
-
getTilePos
public net.minecraft.core.BlockPos getTilePos()- Specified by:
getTilePosin interfacecom.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
-
rotate
public void rotate(net.minecraft.world.level.block.Rotation rotationIn) - Specified by:
rotatein interfacecom.ldtteam.structurize.api.util.IRotatableBlockEntity
-
mirror
public void mirror(net.minecraft.world.level.block.Mirror mirror) - Specified by:
mirrorin interfacecom.ldtteam.structurize.api.util.IRotatableBlockEntity
-
getRotation
public net.minecraft.world.level.block.Rotation getRotation()Get the rotation of the controller.- Returns:
- the placed rotation.
-
getMirror
public boolean getMirror()Get the mirroring setting of the controller.- Returns:
- true if mirrored.
-