Class VerticalAnchor
java.lang.Object
net.minecraft.world.level.levelgen.VerticalAnchor
- Direct Known Subclasses:
VerticalAnchor.AboveBottom
,VerticalAnchor.Absolute
,VerticalAnchor.BelowTop
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static VerticalAnchor
static com.mojang.serialization.Codec<VerticalAnchor>
private static VerticalAnchor
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VerticalAnchor
aboveBottom(int p_158931_)
static VerticalAnchor
absolute(int p_158923_)
static VerticalAnchor
belowTop(int p_158936_)
static VerticalAnchor
bottom()
private static VerticalAnchor
merge(com.mojang.datafixers.util.Either<VerticalAnchor.Absolute,com.mojang.datafixers.util.Either<VerticalAnchor.AboveBottom,VerticalAnchor.BelowTop>> p_158925_)
abstract int
resolveY(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 VerticalAnchor
top()
protected int
value()
-
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
-