Package net.minecraft.world.gen
Class YOffset
java.lang.Object
net.minecraft.world.gen.YOffset
- Direct Known Subclasses:
YOffset.AboveBottom
,YOffset.BelowTop
,YOffset.Fixed
public abstract class YOffset extends Object
- Mappings:
Namespace Name official cnz
intermediary net/minecraft/class_5843
named net/minecraft/world/gen/YOffset
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
YOffset.AboveBottom
(package private) static class
YOffset.BelowTop
(package private) static class
YOffset.Fixed
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
YOffset(int offset)
-
Method Summary
Modifier and Type Method Description static YOffset
aboveBottom(int offset)
static YOffset
belowTop(int offset)
static YOffset
fixed(int offset)
private static YOffset
fromEither(com.mojang.datafixers.util.Either<YOffset.Fixed,com.mojang.datafixers.util.Either<YOffset.AboveBottom,YOffset.BelowTop>> either)
static YOffset
getBottom()
protected int
getOffset()
static YOffset
getTop()
abstract int
getY(HeightContext heightContext)
private static com.mojang.datafixers.util.Either<YOffset.Fixed,com.mojang.datafixers.util.Either<YOffset.AboveBottom,YOffset.BelowTop>>
map(YOffset yOffset)
-
Field Details
-
OFFSET_CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a:Lcom/mojang/serialization/Codec;
intermediary field_28915
Lnet/minecraft/class_5843;field_28915:Lcom/mojang/serialization/Codec;
named OFFSET_CODEC
Lnet/minecraft/world/gen/YOffset;OFFSET_CODEC:Lcom/mojang/serialization/Codec;
-
BOTTOM
- Mappings:
Namespace Name Mixin selector official b
Lcnz;b:Lcnz;
intermediary field_28916
Lnet/minecraft/class_5843;field_28916:Lnet/minecraft/class_5843;
named BOTTOM
Lnet/minecraft/world/gen/YOffset;BOTTOM:Lnet/minecraft/world/gen/YOffset;
-
TOP
- Mappings:
Namespace Name Mixin selector official c
Lcnz;c:Lcnz;
intermediary field_28917
Lnet/minecraft/class_5843;field_28917:Lnet/minecraft/class_5843;
named TOP
Lnet/minecraft/world/gen/YOffset;TOP:Lnet/minecraft/world/gen/YOffset;
-
offset
private final int offset- Mappings:
Namespace Name Mixin selector official d
Lcnz;d:I
intermediary field_28918
Lnet/minecraft/class_5843;field_28918:I
named offset
Lnet/minecraft/world/gen/YOffset;offset:I
-
-
Constructor Details
-
YOffset
protected YOffset(int offset)- Mappings:
Namespace Name Mixin selector official <init>
Lcnz;<init>(I)V
intermediary <init>
Lnet/minecraft/class_5843;<init>(I)V
named <init>
Lnet/minecraft/world/gen/YOffset;<init>(I)V
-
-
Method Details
-
fixed
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(I)Lcnz;
intermediary method_33841
Lnet/minecraft/class_5843;method_33841(I)Lnet/minecraft/class_5843;
named fixed
Lnet/minecraft/world/gen/YOffset;fixed(I)Lnet/minecraft/world/gen/YOffset;
-
aboveBottom
- Mappings:
Namespace Name Mixin selector official b
Lcnz;b(I)Lcnz;
intermediary method_33846
Lnet/minecraft/class_5843;method_33846(I)Lnet/minecraft/class_5843;
named aboveBottom
Lnet/minecraft/world/gen/YOffset;aboveBottom(I)Lnet/minecraft/world/gen/YOffset;
-
belowTop
- Mappings:
Namespace Name Mixin selector official c
Lcnz;c(I)Lcnz;
intermediary method_33849
Lnet/minecraft/class_5843;method_33849(I)Lnet/minecraft/class_5843;
named belowTop
Lnet/minecraft/world/gen/YOffset;belowTop(I)Lnet/minecraft/world/gen/YOffset;
-
getBottom
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a()Lcnz;
intermediary method_33840
Lnet/minecraft/class_5843;method_33840()Lnet/minecraft/class_5843;
named getBottom
Lnet/minecraft/world/gen/YOffset;getBottom()Lnet/minecraft/world/gen/YOffset;
-
getTop
- Mappings:
Namespace Name Mixin selector official b
Lcnz;b()Lcnz;
intermediary method_33845
Lnet/minecraft/class_5843;method_33845()Lnet/minecraft/class_5843;
named getTop
Lnet/minecraft/world/gen/YOffset;getTop()Lnet/minecraft/world/gen/YOffset;
-
fromEither
private static YOffset fromEither(com.mojang.datafixers.util.Either<YOffset.Fixed,com.mojang.datafixers.util.Either<YOffset.AboveBottom,YOffset.BelowTop>> either)- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Lcom/mojang/datafixers/util/Either;)Lcnz;
intermediary method_33843
Lnet/minecraft/class_5843;method_33843(Lcom/mojang/datafixers/util/Either;)Lnet/minecraft/class_5843;
named fromEither
Lnet/minecraft/world/gen/YOffset;fromEither(Lcom/mojang/datafixers/util/Either;)Lnet/minecraft/world/gen/YOffset;
-
map
private static com.mojang.datafixers.util.Either<YOffset.Fixed,com.mojang.datafixers.util.Either<YOffset.AboveBottom,YOffset.BelowTop>> map(YOffset yOffset)- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Lcnz;)Lcom/mojang/datafixers/util/Either;
intermediary method_33842
Lnet/minecraft/class_5843;method_33842(Lnet/minecraft/class_5843;)Lcom/mojang/datafixers/util/Either;
named map
Lnet/minecraft/world/gen/YOffset;map(Lnet/minecraft/world/gen/YOffset;)Lcom/mojang/datafixers/util/Either;
-
getOffset
protected int getOffset()- Mappings:
Namespace Name Mixin selector official c
Lcnz;c()I
intermediary method_33848
Lnet/minecraft/class_5843;method_33848()I
named getOffset
Lnet/minecraft/world/gen/YOffset;getOffset()I
-
getY
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Lcob;)I
intermediary method_33844
Lnet/minecraft/class_5843;method_33844(Lnet/minecraft/class_5868;)I
named getY
Lnet/minecraft/world/gen/YOffset;getY(Lnet/minecraft/world/gen/HeightContext;)I
-