Class StructureBlockTileEntity

All Implemented Interfaces:
ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeTileEntity, INBTSerializable<CompoundNBT>

public class StructureBlockTileEntity extends TileEntity
  • Field Details

    • structureName

      private ResourceLocation structureName
    • author

      private String author
    • metaData

      private String metaData
    • structurePos

      private BlockPos structurePos
    • structureSize

      private BlockPos structureSize
    • mirror

      private Mirror mirror
    • rotation

      private Rotation rotation
    • mode

      private StructureMode mode
    • ignoreEntities

      private boolean ignoreEntities
    • powered

      private boolean powered
    • showAir

      private boolean showAir
    • showBoundingBox

      private boolean showBoundingBox
    • integrity

      private float integrity
    • seed

      private long seed
  • Constructor Details

    • StructureBlockTileEntity

      public StructureBlockTileEntity()
  • Method Details

    • getViewDistance

      public double getViewDistance()
      Overrides:
      getViewDistance in class TileEntity
    • save

      public CompoundNBT save(CompoundNBT p_189515_1_)
      Overrides:
      save in class TileEntity
    • load

      public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
      Overrides:
      load in class TileEntity
    • updateBlockState

      private void updateBlockState()
    • getUpdatePacket

      @Nullable public SUpdateTileEntityPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class TileEntity
    • getUpdateTag

      public CompoundNBT getUpdateTag()
      Overrides:
      getUpdateTag in class TileEntity
    • usedBy

      public boolean usedBy(PlayerEntity p_189701_1_)
    • getStructureName

      public String getStructureName()
    • getStructurePath

      public String getStructurePath()
    • hasStructureName

      public boolean hasStructureName()
    • setStructureName

      public void setStructureName(@Nullable String p_184404_1_)
    • setStructureName

      public void setStructureName(@Nullable ResourceLocation p_210163_1_)
    • createdBy

      public void createdBy(LivingEntity p_189720_1_)
    • getStructurePos

      public BlockPos getStructurePos()
    • setStructurePos

      public void setStructurePos(BlockPos p_184414_1_)
    • getStructureSize

      public BlockPos getStructureSize()
    • setStructureSize

      public void setStructureSize(BlockPos p_184409_1_)
    • getMirror

      public Mirror getMirror()
    • setMirror

      public void setMirror(Mirror p_184411_1_)
    • getRotation

      public Rotation getRotation()
    • setRotation

      public void setRotation(Rotation p_184408_1_)
    • getMetaData

      public String getMetaData()
    • setMetaData

      public void setMetaData(String p_184410_1_)
    • getMode

      public StructureMode getMode()
    • setMode

      public void setMode(StructureMode p_184405_1_)
    • nextMode

      public void nextMode()
    • isIgnoreEntities

      public boolean isIgnoreEntities()
    • setIgnoreEntities

      public void setIgnoreEntities(boolean p_184406_1_)
    • getIntegrity

      public float getIntegrity()
    • setIntegrity

      public void setIntegrity(float p_189718_1_)
    • getSeed

      public long getSeed()
    • setSeed

      public void setSeed(long p_189725_1_)
    • detectSize

      public boolean detectSize()
    • filterRelatedCornerBlocks

      private List<StructureBlockTileEntity> filterRelatedCornerBlocks(List<StructureBlockTileEntity> p_184415_1_)
    • getNearbyCornerBlocks

      private List<StructureBlockTileEntity> getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_)
    • calculateEnclosingBoundingBox

      private MutableBoundingBox calculateEnclosingBoundingBox(BlockPos p_184416_1_, List<StructureBlockTileEntity> p_184416_2_)
    • saveStructure

      public boolean saveStructure()
    • saveStructure

      public boolean saveStructure(boolean p_189712_1_)
    • loadStructure

      public boolean loadStructure(ServerWorld p_242687_1_)
    • createRandom

      private static Random createRandom(long p_214074_0_)
    • loadStructure

      public boolean loadStructure(ServerWorld p_242688_1_, boolean p_242688_2_)
    • loadStructure

      public boolean loadStructure(ServerWorld p_242689_1_, boolean p_242689_2_, Template p_242689_3_)
    • unloadStructure

      public void unloadStructure()
    • isStructureLoadable

      public boolean isStructureLoadable()
    • isPowered

      public boolean isPowered()
    • setPowered

      public void setPowered(boolean p_189723_1_)
    • getShowAir

      public boolean getShowAir()
    • setShowAir

      public void setShowAir(boolean p_189703_1_)
    • getShowBoundingBox

      public boolean getShowBoundingBox()
    • setShowBoundingBox

      public void setShowBoundingBox(boolean p_189710_1_)