Package net.minecraft.core
Class QuartPos
java.lang.Object
net.minecraft.core.QuartPos
Used to convert between chunk positions (referred to here as sections, from
LevelChunkSection), block positions, and quart positions.
The latter is used to query biomes from a noise biome source.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intfromBlock(int pValue) static intfromSection(int pValue) static intquartLocal(int pValue) static inttoBlock(int pValue) static inttoSection(int pValue)
-
Field Details
-
BITS
public static final int BITS- See Also:
-
SIZE
public static final int SIZE- See Also:
-
MASK
public static final int MASK- See Also:
-
SECTION_TO_QUARTS_BITS
private static final int SECTION_TO_QUARTS_BITS- See Also:
-
-
Constructor Details
-
QuartPos
private QuartPos()
-
-
Method Details
-
fromBlock
public static int fromBlock(int pValue) -
quartLocal
public static int quartLocal(int pValue) -
toBlock
public static int toBlock(int pValue) -
fromSection
public static int fromSection(int pValue) -
toSection
public static int toSection(int pValue)
-