Package com.ldtteam.structurize.util
Class BlueprintPositionInfo
java.lang.Object
com.ldtteam.structurize.util.BlueprintPositionInfo
Contains all information we need for placement at a given position.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.nbt.CompoundTag[]List of entities at position. -
Constructor Summary
ConstructorsConstructorDescriptionBlueprintPositionInfo(net.minecraft.core.BlockPos pos, @Nullable BlockInfo info, @Nullable net.minecraft.nbt.CompoundTag[] entities) Constructor of a blueprint position info. -
Method Summary
-
Field Details
-
entities
public final net.minecraft.nbt.CompoundTag[] entitiesList 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
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.
-