Interface VerticalAnchor
- All Known Implementing Classes:
VerticalAnchor.AboveBottom
,VerticalAnchor.Absolute
,VerticalAnchor.BelowTop
public interface VerticalAnchor
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final VerticalAnchor
static final com.mojang.serialization.Codec<VerticalAnchor>
static final VerticalAnchor
-
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_) 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()
-
Field Details
-
CODEC
-
BOTTOM
-
TOP
-
-
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, splitVerticalAnchor.BelowTop>> (VerticalAnchor p_158927_) -
resolveY
-