Class PrefabBuffer.Builder
java.lang.Object
com.hypixel.hytale.server.core.prefab.selection.buffer.impl.PrefabBuffer.Builder
- Enclosing class:
PrefabBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector3iprivate final io.netty.buffer.ByteBufprivate final List<PrefabBuffer.ChildPrefab> private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PrefabBufferColumn> private final Vector3iprivate final Vector3i -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildPrefab(int x, int y, int z, String path, boolean fitHeightmap, boolean inheritSeed, boolean inheritHeightCondition, PrefabWeights weights, PrefabRotation rotation) voidaddColumn(int x, int z, PrefabBufferBlockEntry[] entries, Holder<EntityStore>[] entityHolders) build()private voidhandleBlockComponents(int blockRotation, int x, int y, int z, Holder<ChunkStore> holder) newBlockEntry(int y) void
-
Field Details
-
buf
private final io.netty.buffer.ByteBuf buf -
min
-
max
-
columns
-
childPrefabs
-
anchor
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
setAnchor
-
addColumn
public void addColumn(int x, int z, @Nonnull PrefabBufferBlockEntry[] entries, @Nullable Holder<EntityStore>[] entityHolders) -
handleBlockComponents
private void handleBlockComponents(int blockRotation, int x, int y, int z, @Nonnull Holder<ChunkStore> holder) -
addChildPrefab
public void addChildPrefab(int x, int y, int z, @Nonnull String path, boolean fitHeightmap, boolean inheritSeed, boolean inheritHeightCondition, @Nullable PrefabWeights weights, @Nonnull PrefabRotation rotation) -
newBlockEntry
-
build
-