Contents
Class BlockEntry
java.lang.Object
com.hypixel.hytale.builtin.worldgen.modifier.content.common.BlockEntry
- Direct Known Subclasses:
CoverContent.Entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArrayCodec<BlockEntry> static final BuilderCodec<BlockEntry> static final BlockEntry[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblock()Get the block type ID for this entry.static IWeightedMap<BlockFluidEntry> build(BlockEntry[] entries) Builds a weighted map from an array of block entries.doubleweight()Get the random weight for this entry.
-
Field Details
-
CODEC
-
ARRAY_CODEC
-
EMPTY_ARRAY
-
-
Constructor Details
-
BlockEntry
public BlockEntry()
-
-
Method Details
-
block
-
weight
public double weight()Get the random weight for this entry.- Returns:
- the random weight for the entry.
-
build
Builds a weighted map from an array of block entries.- Parameters:
entries- an array ofBlockEntryobjects, where each entry contains a block type and its associated weight for random selection- Returns:
- an
IWeightedMap<BlockFluidEntry>instance containing the mapped block fluid entries with their respective weights
-