Interface HeightProvider
- All Superinterfaces:
Wrapper
- All Known Implementing Classes:
HeightProvider.BiasedToBottom, HeightProvider.Constant, HeightProvider.Trapezoid, HeightProvider.Uniform, HeightProvider.VeryBiasedToBottom
@NullMarked
@AsOf("2.3.0")
public sealed interface HeightProvider
extends Wrapper
permits HeightProvider.Constant, HeightProvider.Uniform, HeightProvider.Trapezoid, HeightProvider.BiasedToBottom, HeightProvider.VeryBiasedToBottom
Wraps the HeightProvider value-provider family.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic HeightProviderbiasedToBottom(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Weighted toward the bottom of the range.static HeightProviderconstant(VerticalAnchor value) A single fixed anchor.default ObjectConvert this handle to the real Minecraft object.static HeightProvidertrapezoid(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int plateau) Trapezoidal distribution with a flat plateau of the given height.static HeightProvideruniform(VerticalAnchor minInclusive, VerticalAnchor maxInclusive) Uniformly distributed between two anchors (inclusive).static HeightProviderveryBiasedToBottom(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Weighted very strongly toward the bottom of the range.
-
Field Details
-
WIRE
-
-
Method Details
-
constant
A single fixed anchor. -
uniform
@AsOf("2.3.0") static HeightProvider uniform(VerticalAnchor minInclusive, VerticalAnchor maxInclusive) Uniformly distributed between two anchors (inclusive). -
trapezoid
@AsOf("2.3.0") static HeightProvider trapezoid(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int plateau) Trapezoidal distribution with a flat plateau of the given height. -
biasedToBottom
@AsOf("2.3.0") static HeightProvider biasedToBottom(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Weighted toward the bottom of the range. -
veryBiasedToBottom
@AsOf("2.3.0") static HeightProvider veryBiasedToBottom(VerticalAnchor minInclusive, VerticalAnchor maxInclusive, int inner) Weighted very strongly toward the bottom of the range. -
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-