Class TileEntityDecorationController

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.minecolonies.core.tileentities.TileEntityDecorationController
All Implemented Interfaces:
com.ldtteam.structurize.api.IRotatableBlockEntity, com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class TileEntityDecorationController extends net.minecraft.world.level.block.entity.BlockEntity implements com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE, com.ldtteam.structurize.api.IRotatableBlockEntity
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields 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_POS
  • Constructor Summary

    Constructors
    Constructor
    Description
    TileEntityDecorationController(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    Map<net.minecraft.core.BlockPos,List<String>>
     
    com.ldtteam.structurize.api.RotationMirror
    Get the rotation of the controller.
    net.minecraft.util.Tuple<net.minecraft.core.BlockPos,net.minecraft.core.BlockPos>
     
     
    net.minecraft.core.BlockPos
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    @NotNull net.minecraft.nbt.CompoundTag
    getUpdateTag(net.minecraft.core.HolderLookup.Provider provider)
     
    void
    loadAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    readSchematicDataFromNBT(net.minecraft.nbt.CompoundTag compound)
     
    void
    rotateAndMirror(com.ldtteam.structurize.api.RotationMirror rotationMirror)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider provider)
     
    void
     
    void
     
    void
    setPackName(String packName)
     
    void
    setPositionedTags(Map<net.minecraft.core.BlockPos,List<String>> positionedTags)
     
    void
    setSchematicCorners(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
     
    void
     

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, hasData, removeData, setData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate

    Methods inherited from interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE

    addTag, getInWorldCorners, getRealWorldPos, getWorldTagNamePosMap, getWorldTagPosMap, removeTag, writeSchematicDataToNBT
  • Constructor Details

    • TileEntityDecorationController

      public TileEntityDecorationController(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getPackName

      public String getPackName()
      Specified by:
      getPackName in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • getBlueprintPath

      public String getBlueprintPath()
      Specified by:
      getBlueprintPath in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • getSchematicName

      public String getSchematicName()
      Specified by:
      getSchematicName in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • setSchematicName

      public void setSchematicName(String s)
      Specified by:
      setSchematicName in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • setChanged

      public void setChanged()
      Overrides:
      setChanged in class net.minecraft.world.level.block.entity.BlockEntity
    • getPositionedTags

      public Map<net.minecraft.core.BlockPos,List<String>> getPositionedTags()
      Specified by:
      getPositionedTags in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • setPositionedTags

      public void setPositionedTags(Map<net.minecraft.core.BlockPos,List<String>> positionedTags)
      Specified by:
      setPositionedTags in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • getSchematicCorners

      public net.minecraft.util.Tuple<net.minecraft.core.BlockPos,net.minecraft.core.BlockPos> getSchematicCorners()
      Specified by:
      getSchematicCorners in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • setSchematicCorners

      public void setSchematicCorners(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
      Specified by:
      setSchematicCorners in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • readSchematicDataFromNBT

      public void readSchematicDataFromNBT(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      readSchematicDataFromNBT in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • loadAdditional

      public void loadAdditional(net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      @Nullable public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Specified by:
      getUpdatePacket in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • setBlueprintPath

      public void setBlueprintPath(String filePath)
      Specified by:
      setBlueprintPath in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • setPackName

      public void setPackName(String packName)
      Specified by:
      setPackName in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • getUpdateTag

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag(@NotNull net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • onDataPacket

      public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet, @NotNull net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      onDataPacket in interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
    • getTilePos

      public net.minecraft.core.BlockPos getTilePos()
      Specified by:
      getTilePos in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
    • rotateAndMirror

      public void rotateAndMirror(com.ldtteam.structurize.api.RotationMirror rotationMirror)
      Specified by:
      rotateAndMirror in interface com.ldtteam.structurize.api.IRotatableBlockEntity
    • getRotationMirror

      public com.ldtteam.structurize.api.RotationMirror getRotationMirror()
      Get the rotation of the controller.
      Returns:
      the placed rotation and mirror.