Skip to main content

Module value_providers

Module value_providers 

Source
Expand description

Vanilla-compatible value provider types (VerticalAnchor, HeightProvider, FloatProvider). Value providers matching vanilla’s VerticalAnchor, HeightProvider, and FloatProvider.

JSON parsing follows vanilla’s codec shape:

  • VerticalAnchor is a single-key object: {"absolute": 180}, {"above_bottom": 8}, or {"below_top": 1}.
  • HeightProvider accepts either a bare VerticalAnchor (shortcut for ConstantHeight) or a typed object with a namespaced vanilla registry id, e.g. {"type": "minecraft:uniform", ...}.
  • FloatProvider accepts either a bare float (shortcut for ConstantFloat) or a typed object with a namespaced vanilla registry id.

Structs§

UniformIntProvider
Uniform inclusive int provider.
WeightedIntProvider
A weighted int-provider entry.

Enums§

FloatProvider
A float-valued provider.
HeightProvider
An int-valued provider parameterised by world-generation bounds (min_y, height).
IntProvider
An int-valued provider.
VerticalAnchor
A vertical anchor resolving to a world Y coordinate given the dimension bounds.