Class StructureTemplateBuilder
java.lang.Object
net.neoforged.testframework.gametest.StructureTemplateBuilder
- All Implemented Interfaces:
TemplateBuilderHelper<StructureTemplateBuilder>
@ParametersAreNonnullByDefault
public class StructureTemplateBuilder
extends Object
implements TemplateBuilderHelper<StructureTemplateBuilder>
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<BlockPos, StructureTemplate.StructureBlockInfo> private final List
<StructureTemplate.StructureEntityInfo> private static final StructureTemplateBuilder.FieldHandle
<StructureTemplate, List<StructureTemplate.StructureEntityInfo>> private static final MethodHandle
private static final StructureTemplateBuilder.FieldHandle
<StructureTemplate, List<StructureTemplate.Palette>> private final Vec3i
private static final StructureTemplateBuilder.FieldHandle
<StructureTemplate, Vec3i> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static StructureTemplate
empty
(int length, int height, int width) fill
(int x, int y, int z, int toX, int toY, int toZ, BlockState state) fill
(int x, int y, int z, int toX, int toY, int toZ, BlockState state, @Nullable CompoundTag nbt) static Supplier
<StructureTemplate> lazy
(int length, int height, int width, UnaryOperator<StructureTemplateBuilder> consumer) set
(int x, int y, int z, BlockState state) set
(int x, int y, int z, BlockState state, @Nullable CompoundTag nbt) static StructureTemplateBuilder
withSize
(int length, int height, int width) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.testframework.gametest.TemplateBuilderHelper
placeFloorLever, placeSustainedWater, placeWaterConfinement
-
Field Details
-
PALETTES
private static final StructureTemplateBuilder.FieldHandle<StructureTemplate,List<StructureTemplate.Palette>> PALETTES -
ENTITY_INFO_LIST
private static final StructureTemplateBuilder.FieldHandle<StructureTemplate,List<StructureTemplate.StructureEntityInfo>> ENTITY_INFO_LIST -
SIZE
-
PALETTE_CONSTRUCTOR
-
size
-
blocks
-
entities
-
-
Constructor Details
-
StructureTemplateBuilder
-
-
Method Details
-
withSize
-
empty
-
fill
-
fill
public StructureTemplateBuilder fill(int x, int y, int z, int toX, int toY, int toZ, BlockState state) -
fill
public StructureTemplateBuilder fill(int x, int y, int z, int toX, int toY, int toZ, BlockState state, @Nullable @Nullable CompoundTag nbt) -
set
-
set
public StructureTemplateBuilder set(int x, int y, int z, BlockState state, @Nullable @Nullable CompoundTag nbt) - Specified by:
set
in interfaceTemplateBuilderHelper<StructureTemplateBuilder>
-
build
-
lazy
public static Supplier<StructureTemplate> lazy(int length, int height, int width, UnaryOperator<StructureTemplateBuilder> consumer)
-