Class BlockEntry

java.lang.Object
com.hypixel.hytale.builtin.worldgen.modifier.content.common.BlockEntry
Direct Known Subclasses:
CoverContent.Entry

public class BlockEntry extends Object
  • Field Details

  • Constructor Details

    • BlockEntry

      public BlockEntry()
  • Method Details

    • block

      @Nonnull public String block()
      Get the block type ID for this entry.
      Returns:
      the block type id.
    • weight

      public double weight()
      Get the random weight for this entry.
      Returns:
      the random weight for the entry.
    • build

      public static IWeightedMap<BlockFluidEntry> build(@Nonnull BlockEntry[] entries)
      Builds a weighted map from an array of block entries.
      Parameters:
      entries - an array of BlockEntry objects, 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