Package net.minecraft.world.biome.source
Class BiomeCoords
java.lang.Object
net.minecraft.world.biome.source.BiomeCoords
Utility class for converting between biome coordinates and block or chunk
coordinates.
Modders should use this class as Mojang may change the biome coordinate to block or chunk coordinate ratio in the future again.
- API Note:
- A biome voxel comprises of 4×4×4 block voxels, as that's how biomes are stored in game after 19w36a. Each chunk section has 4×4×4 biome voxels as a result.
- Mappings:
Namespace Name intermediary net/minecraft/class_5742official hqnamed net/minecraft/world/biome/source/BiomeCoords
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intfromBlock(int blockCoord) Converts a block x, y, or z to a biome x, y, or z.static intfromChunk(int chunkCoord) Converts a chunk x or z to a biome x or z.static intmethod_39920(int int2) static inttoBlock(int biomeCoord) Converts a biome x, y, or z to a block x, y, or z.static inttoChunk(int biomeCoord) Converts a biome x or z to a chunk x or z.
-
Field Details
-
field_33089
public static final int field_33089- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_33089Lnet/minecraft/class_5742;field_33089:Iofficial aLhq;a:Inamed field_33089Lnet/minecraft/world/biome/source/BiomeCoords;field_33089:I
-
field_33090
public static final int field_33090- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_33090Lnet/minecraft/class_5742;field_33090:Iofficial bLhq;b:Inamed field_33090Lnet/minecraft/world/biome/source/BiomeCoords;field_33090:I
-
field_34830
public static final int field_34830- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_34830Lnet/minecraft/class_5742;field_34830:Iofficial cLhq;c:Inamed field_34830Lnet/minecraft/world/biome/source/BiomeCoords;field_34830:I
-
field_33091
private static final int field_33091- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_33091Lnet/minecraft/class_5742;field_33091:Iofficial dLhq;d:Inamed field_33091Lnet/minecraft/world/biome/source/BiomeCoords;field_33091:I
-
-
Constructor Details
-
BiomeCoords
private BiomeCoords()
-
-
Method Details
-
fromBlock
public static int fromBlock(int blockCoord) Converts a block x, y, or z to a biome x, y, or z.- Parameters:
blockCoord- a block x, y, or z- Implementation Requirements:
- This implementation returns
blockCoord / 4. - Mappings:
Namespace Name Mixin selector intermediary method_33100Lnet/minecraft/class_5742;method_33100(I)Iofficial aLhq;a(I)Inamed fromBlockLnet/minecraft/world/biome/source/BiomeCoords;fromBlock(I)I
-
method_39920
public static int method_39920(int int2) - Mappings:
Namespace Name Mixin selector intermediary method_39920Lnet/minecraft/class_5742;method_39920(I)Iofficial bLhq;b(I)Inamed method_39920Lnet/minecraft/world/biome/source/BiomeCoords;method_39920(I)I
-
toBlock
public static int toBlock(int biomeCoord) Converts a biome x, y, or z to a block x, y, or z.- Parameters:
biomeCoord- a biome x, y, or z- Implementation Requirements:
- This implementation returns
blockCoord * 4. - Mappings:
Namespace Name Mixin selector intermediary method_33101Lnet/minecraft/class_5742;method_33101(I)Iofficial cLhq;c(I)Inamed toBlockLnet/minecraft/world/biome/source/BiomeCoords;toBlock(I)I
-
fromChunk
public static int fromChunk(int chunkCoord) Converts a chunk x or z to a biome x or z.- Parameters:
chunkCoord- a chunk x or z- Implementation Requirements:
- This implementation returns
chunkCoord * 4. - Mappings:
Namespace Name Mixin selector intermediary method_33102Lnet/minecraft/class_5742;method_33102(I)Iofficial dLhq;d(I)Inamed fromChunkLnet/minecraft/world/biome/source/BiomeCoords;fromChunk(I)I
-
toChunk
public static int toChunk(int biomeCoord) Converts a biome x or z to a chunk x or z.- Parameters:
biomeCoord- a biome x or z- Implementation Requirements:
- This implementation returns
biomeCoord / 4. - Mappings:
Namespace Name Mixin selector intermediary method_33103Lnet/minecraft/class_5742;method_33103(I)Iofficial eLhq;e(I)Inamed toChunkLnet/minecraft/world/biome/source/BiomeCoords;toChunk(I)I
-