net.minecraft.world.gen

public record YOffset

net.minecraft.world.level.levelgen.VerticalAnchor
net.minecraft.class_5843
net.minecraft.world.gen.YOffset

Field summary

Modifier and TypeField
private final YOffset$Type
type
comp_1_1884
type
private final int
offset
comp_1_1883
offset
private static final com.mojang.serialization.Codec<Integer>
OFFSET_CODEC
field_1_10636
OFFSET_CODEC
public static final com.mojang.serialization.Codec<YOffset>
CODEC
field_28915
CODEC
private static final YOffset
BOTTOM
field_28916
BOTTOM
private static final YOffset
TOP
field_28917
TOP

Constructor summary

ModifierConstructor
public (YOffset$Type type, int offset)

Method summary

Modifier and TypeMethod
public static YOffset
absolute(int value)
method_33841(int arg0)
fixed(int offset)
public static YOffset
aboveBottom(int offset)
method_33846(int arg0)
aboveBottom(int offset)
public static YOffset
belowTop(int offset)
method_33849(int arg0)
belowTop(int offset)
public static YOffset
bottom()
method_33840()
getBottom()
public static YOffset
top()
method_33845()
getTop()
public static YOffset
relativeToSeaLevel(int offset)
method_1_7450(int arg0)
relativeToSeaLevel(int offset)
public static YOffset
seaLevel()
method_1_7451()
seaLevel()
public int
resolveY(VerticalAnchor$Context context)
method_33844(class_5843$class_1_1694 arg0)
getY(YOffset$Context context)
public YOffset$Type
type()
comp_1_1884()
type()
public int
offset()
comp_1_1883()
offset()
private static com.mojang.serialization.Codec
lambda$static$0(VerticalAnchor$Type arg0)
method_1_10690(class_5843$class_1_1695 arg0)
method_1_10690(YOffset$Type type)
private static YOffset
lambda$static$1(VerticalAnchor$Type arg0, Integer arg1)
method_1_10691(class_5843$class_1_1695 arg0, Integer arg1)
method_1_10691(YOffset$Type arg0, Integer offset)