Class VerticalAnchor
java.lang.Object
net.minecraft.world.level.levelgen.VerticalAnchor
- Direct Known Subclasses:
VerticalAnchor.AboveBottom,VerticalAnchor.Absolute,VerticalAnchor.BelowTop
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static VerticalAnchorstatic com.mojang.serialization.Codec<VerticalAnchor>private static VerticalAnchorprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerticalAnchoraboveBottom(int p_158931_)static VerticalAnchorabsolute(int p_158923_)static VerticalAnchorbelowTop(int p_158936_)static VerticalAnchorbottom()private static VerticalAnchormerge(com.mojang.datafixers.util.Either<VerticalAnchor.Absolute,com.mojang.datafixers.util.Either<VerticalAnchor.AboveBottom,VerticalAnchor.BelowTop>> p_158925_)abstract intresolveY(WorldGenerationContext p_158928_)private static com.mojang.datafixers.util.Either<VerticalAnchor.Absolute,com.mojang.datafixers.util.Either<VerticalAnchor.AboveBottom,VerticalAnchor.BelowTop>>split(VerticalAnchor p_158927_)static VerticalAnchortop()protected intvalue()
-
Field Details
-
CODEC
-
BOTTOM
-
TOP
-
value
private final int value
-
-
Constructor Details
-
VerticalAnchor
protected VerticalAnchor(int p_158920_)
-
-
Method Details
-
absolute
-
aboveBottom
-
belowTop
-
bottom
-
top
-
merge
private static VerticalAnchor merge(com.mojang.datafixers.util.Either<VerticalAnchor.Absolute,com.mojang.datafixers.util.Either<VerticalAnchor.AboveBottom,VerticalAnchor.BelowTop>> p_158925_) -
split
private static com.mojang.datafixers.util.Either<VerticalAnchor.Absolute,com.mojang.datafixers.util.Either<VerticalAnchor.AboveBottom,VerticalAnchor.BelowTop>> split(VerticalAnchor p_158927_) -
value
protected int value() -
resolveY
-