yarn/mappings/net/minecraft/world/biome/source/BiomeCoords.mapping

35 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CLASS net/minecraft/class_5742 net/minecraft/world/biome/source/BiomeCoords
COMMENT Utility class for converting between biome coordinates and block or chunk
COMMENT coordinates.
COMMENT
COMMENT <p>Modders should use this class as Mojang may change the biome coordinate to
COMMENT block or chunk coordinate ratio in the future again.
COMMENT
COMMENT @apiNote A biome voxel comprises of 4×4×4 block voxels, as that's how biomes
COMMENT are stored in game after 19w36a. Each chunk section has 4×4×4 biome
COMMENT voxels as a result.
METHOD method_33100 fromBlock (I)I
COMMENT Converts a block x, y, or z to a biome x, y, or z.
COMMENT
COMMENT @implSpec This implementation returns {@code blockCoord / 4}.
ARG 0 blockCoord
COMMENT a block x, y, or z
METHOD method_33101 toBlock (I)I
COMMENT Converts a biome x, y, or z to a block x, y, or z.
COMMENT
COMMENT @implSpec This implementation returns {@code blockCoord * 4}.
ARG 0 biomeCoord
COMMENT a biome x, y, or z
METHOD method_33102 fromChunk (I)I
COMMENT Converts a chunk x or z to a biome x or z.
COMMENT
COMMENT @implSpec This implementation returns {@code chunkCoord * 4}.
ARG 0 chunkCoord
COMMENT a chunk x or z
METHOD method_33103 toChunk (I)I
COMMENT Converts a biome x or z to a chunk x or z.
COMMENT
COMMENT @implSpec This implementation returns {@code biomeCoord / 4}.
ARG 0 biomeCoord
COMMENT a biome x or z