Package net.minecraft.structure
Class Structure
java.lang.Object
net.minecraft.structure.Structure
public class Structure extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Structure.Palette
static class
Structure.PalettedBlockInfoList
static class
Structure.StructureBlockInfo
static class
Structure.StructureEntityInfo
-
Field Summary
Fields Modifier and Type Field Description private String
author
private List<Structure.PalettedBlockInfoList>
blockInfoLists
private List<Structure.StructureEntityInfo>
entities
private BlockPos
size
-
Constructor Summary
Constructors Constructor Description Structure()
-
Method Summary
-
Field Details
-
blockInfoLists
-
entities
-
size
-
author
-
-
Constructor Details
-
Structure
public Structure()
-
-
Method Details
-
getSize
-
setAuthor
-
getAuthor
-
saveFromWorld
-
method_28054
private static void method_28054(Structure.StructureBlockInfo structureBlockInfo, List<Structure.StructureBlockInfo> list, List<Structure.StructureBlockInfo> list2, List<Structure.StructureBlockInfo> list3) -
method_28055
private static List<Structure.StructureBlockInfo> method_28055(List<Structure.StructureBlockInfo> list, List<Structure.StructureBlockInfo> list2, List<Structure.StructureBlockInfo> list3) -
addEntitiesFromWorld
-
getInfosForBlock
public List<Structure.StructureBlockInfo> getInfosForBlock(BlockPos pos, StructurePlacementData placementData, Block block) -
getInfosForBlock
public List<Structure.StructureBlockInfo> getInfosForBlock(BlockPos pos, StructurePlacementData placementData, Block block, boolean transformed) -
transformBox
public BlockPos transformBox(StructurePlacementData placementData1, BlockPos pos1, StructurePlacementData placementData2, BlockPos pos2) -
transform
-
place
public void place(ServerWorldAccess serverWorldAccess, BlockPos pos, StructurePlacementData placementData, Random random) -
placeAndNotifyListeners
public void placeAndNotifyListeners(ServerWorldAccess serverWorldAccess, BlockPos pos, StructurePlacementData data, Random random) -
place
public boolean place(ServerWorldAccess serverWorldAccess, BlockPos pos, BlockPos blockPos, StructurePlacementData placementData, Random random, int int2) -
updateCorner
public static void updateCorner(WorldAccess world, int flags, VoxelSet voxelSet, int startX, int startY, int startZ) -
process
public static List<Structure.StructureBlockInfo> process(WorldAccess world, BlockPos pos, BlockPos blockPos, StructurePlacementData structurePlacementData, List<Structure.StructureBlockInfo> list) -
spawnEntities
private void spawnEntities(ServerWorldAccess serverWorldAccess, BlockPos pos, BlockMirror blockMirror, BlockRotation blockRotation, BlockPos pivot, @Nullable BlockBox area, boolean bool) -
getEntity
private static Optional<Entity> getEntity(ServerWorldAccess serverWorldAccess, CompoundTag compoundTag) -
getRotatedSize
-
transformAround
public static BlockPos transformAround(BlockPos pos, BlockMirror blockMirror, BlockRotation blockRotation, BlockPos pivot) -
transformAround
public static Vec3d transformAround(Vec3d point, BlockMirror blockMirror, BlockRotation blockRotation, BlockPos pivot) -
offsetByTransformedSize
public BlockPos offsetByTransformedSize(BlockPos blockPos, BlockMirror blockMirror, BlockRotation blockRotation) -
applyTransformedOffset
public static BlockPos applyTransformedOffset(BlockPos blockPos, BlockMirror blockMirror, BlockRotation blockRotation, int offsetX, int offsetZ) -
calculateBoundingBox
-
method_27267
public BlockBox method_27267(BlockPos blockPos, BlockRotation blockRotation, BlockPos blockPos2, BlockMirror blockMirror) -
mirrorBoundingBox
private void mirrorBoundingBox(BlockRotation rotation, int offsetX, int offsetZ, BlockBox boundingBox, Direction direction, Direction direction2) -
toTag
-
fromTag
-
loadPalettedBlockInfo
-
createIntListTag
-
createDoubleListTag
-