Class TileEntityPlantationField

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.minecolonies.api.tileentities.AbstractTileEntityPlantationField
com.minecolonies.core.tileentities.TileEntityPlantationField
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 TileEntityPlantationField extends AbstractTileEntityPlantationField
Implementation for plantation field tile entities.
  • 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, worldPosition

    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

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
     
    The colony this field is located in.
    @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
    Get the dimension this plantation field is placed in.
    boolean
    Get the mirroring setting of the controller.
    Getter for the pack.
    The field type of this plantation.
    Map<net.minecraft.core.BlockPos,List<String>>
     
    net.minecraft.world.level.block.Rotation
    Get the rotation of the controller.
    net.minecraft.util.Tuple<net.minecraft.core.BlockPos,net.minecraft.core.BlockPos>
     
     
    net.minecraft.core.BlockPos
     
    @Nullable net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    @NotNull net.minecraft.nbt.CompoundTag
     
    List<net.minecraft.core.BlockPos>
    The working positions stored in this field.
    void
    load(net.minecraft.nbt.CompoundTag compound)
     
    void
    mirror(net.minecraft.world.level.block.Mirror mirror)
     
    void
    onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet)
     
    void
    readSchematicDataFromNBT(net.minecraft.nbt.CompoundTag compound)
     
    void
    rotate(net.minecraft.world.level.block.Rotation rotationIn)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag compound)
     
    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, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, setRemoved, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

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

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

    addTag, getInWorldCorners, getRealWorldPos, getWorldTagNamePosMap, getWorldTagPosMap, removeTag, writeSchematicDataToNBT

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
  • Constructor Details

    • TileEntityPlantationField

      public TileEntityPlantationField(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Default constructor.
      Parameters:
      pos - The positions this tile entity is at.
      state - The state the entity is in.
  • Method Details

    • getPlantationFieldTypes

      public Set<BuildingExtensionRegistries.BuildingExtensionEntry> getPlantationFieldTypes()
      Description copied from class: AbstractTileEntityPlantationField
      The field type of this plantation.
      Specified by:
      getPlantationFieldTypes in class AbstractTileEntityPlantationField
      Returns:
      the field type.
    • getWorkingPositions

      public List<net.minecraft.core.BlockPos> getWorkingPositions(String tag)
      Description copied from class: AbstractTileEntityPlantationField
      The working positions stored in this field.
      Specified by:
      getWorkingPositions in class AbstractTileEntityPlantationField
      Parameters:
      tag - the tag to search for.
      Returns:
      a list of working positions.
    • getCurrentColony

      public IColony getCurrentColony()
      Description copied from class: AbstractTileEntityPlantationField
      The colony this field is located in.
      Specified by:
      getCurrentColony in class AbstractTileEntityPlantationField
      Returns:
      the colony instance.
    • getDimension

      @Nullable public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension()
      Description copied from class: AbstractTileEntityPlantationField
      Get the dimension this plantation field is placed in.
      Specified by:
      getDimension in class AbstractTileEntityPlantationField
      Returns:
      the dimension key.
    • getUpdatePacket

      @Nullable public @Nullable net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Specified by:
      getUpdatePacket in interface com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE
      Specified by:
      getUpdatePacket in class AbstractTileEntityPlantationField
    • getRotation

      public net.minecraft.world.level.block.Rotation getRotation()
      Get the rotation of the controller.
      Specified by:
      getRotation in class AbstractTileEntityPlantationField
      Returns:
      the placed rotation.
    • getMirror

      public boolean getMirror()
      Get the mirroring setting of the controller.
      Specified by:
      getMirror in class AbstractTileEntityPlantationField
      Returns:
      true if mirrored.
    • getSchematicName

      public String getSchematicName()
    • setSchematicName

      public void setSchematicName(String s)
    • getPositionedTags

      public Map<net.minecraft.core.BlockPos,List<String>> getPositionedTags()
    • setPositionedTags

      public void setPositionedTags(Map<net.minecraft.core.BlockPos,List<String>> positionedTags)
    • getSchematicCorners

      public net.minecraft.util.Tuple<net.minecraft.core.BlockPos,net.minecraft.core.BlockPos> getSchematicCorners()
    • setSchematicCorners

      public void setSchematicCorners(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
    • readSchematicDataFromNBT

      public void readSchematicDataFromNBT(net.minecraft.nbt.CompoundTag compound)
    • getTilePos

      public net.minecraft.core.BlockPos getTilePos()
    • rotate

      public void rotate(net.minecraft.world.level.block.Rotation rotationIn)
    • mirror

      public void mirror(net.minecraft.world.level.block.Mirror mirror)
    • onDataPacket

      public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet)
    • load

      public void load(net.minecraft.nbt.CompoundTag compound)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag compound)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • setChanged

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

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • setBlueprintPath

      public void setBlueprintPath(String filePath)
    • setPackName

      public void setPackName(String packName)
    • getBlueprintPath

      public String getBlueprintPath()
    • getPackName

      public String getPackName()
      Getter for the pack.
      Returns:
      String name.