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 int
static final int
private static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
fromBlock
(int pValue) static int
fromSection
(int pValue) static int
quartLocal
(int pValue) static int
toBlock
(int pValue) static int
toSection
(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)
-