Class BlueprintPositionInfo

java.lang.Object
com.ldtteam.structurize.util.BlueprintPositionInfo

public class BlueprintPositionInfo extends Object
Contains all information we need for placement at a given position.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.nbt.CompoundTag[]
    List of entities at position.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlueprintPositionInfo(net.minecraft.core.BlockPos pos, @Nullable BlockInfo info, @Nullable net.minecraft.nbt.CompoundTag[] entities)
    Constructor of a blueprint position info.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable BlockInfo
    Get the blockinfo at the position.
    @Nullable net.minecraft.nbt.CompoundTag[]
    Get the list of entities at the position.
    net.minecraft.core.BlockPos
    Get the relative position in the structure.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • entities

      public final net.minecraft.nbt.CompoundTag[] entities
      List of entities at position.
  • Constructor Details

    • BlueprintPositionInfo

      public BlueprintPositionInfo(net.minecraft.core.BlockPos pos, @Nullable @Nullable BlockInfo info, @Nullable @Nullable net.minecraft.nbt.CompoundTag[] entities)
      Constructor of a blueprint position info.
      Parameters:
      pos - the position.
      info - the block info.
      entities - the entity data.
  • Method Details

    • getPos

      public net.minecraft.core.BlockPos getPos()
      Get the relative position in the structure.
      Returns:
      the relative pos.
    • getBlockInfo

      @Nullable public @Nullable BlockInfo getBlockInfo()
      Get the blockinfo at the position.
      Returns:
      the info.
    • getEntities

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag[] getEntities()
      Get the list of entities at the position.
      Returns:
      their RAW nbt data.