类 BiomeCoords
- java.lang.Object
-
- net.minecraft.world.biome.source.BiomeCoords
-
public final class BiomeCoords extends Object
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 official gqintermediary net/minecraft/class_5742named net/minecraft/world/biome/source/BiomeCoords
-
-
字段概要
字段 修饰符和类型 字段 说明 static intfield_33089static intfield_33090private static intfield_33091
-
构造器概要
构造器 限定符 构造器 说明 privateBiomeCoords()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static 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 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_33089
public static final int field_33089
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLgq;a:Iintermediary field_33089Lnet/minecraft/class_5742;field_33089:Inamed field_33089Lnet/minecraft/world/biome/source/BiomeCoords;field_33089:I
-
field_33090
public static final int field_33090
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLgq;b:Iintermediary field_33090Lnet/minecraft/class_5742;field_33090:Inamed field_33090Lnet/minecraft/world/biome/source/BiomeCoords;field_33090:I
-
field_33091
private static final int field_33091
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLgq;c:Iintermediary field_33091Lnet/minecraft/class_5742;field_33091:Inamed field_33091Lnet/minecraft/world/biome/source/BiomeCoords;field_33091:I
-
-
方法详细资料
-
fromBlock
public static int fromBlock(int blockCoord)
Converts a block x, y, or z to a biome x, y, or z.- 参数:
blockCoord- a block x, y, or z- Implementation Requirements:
- This implementation returns
blockCoord / 4. - Mappings:
Namespace Name Mixin selector official aLgq;a(I)Iintermediary method_33100Lnet/minecraft/class_5742;method_33100(I)Inamed fromBlockLnet/minecraft/world/biome/source/BiomeCoords;fromBlock(I)I
-
toBlock
public static int toBlock(int biomeCoord)
Converts a biome x, y, or z to a block x, y, or z.- 参数:
biomeCoord- a biome x, y, or z- Implementation Requirements:
- This implementation returns
blockCoord * 4. - Mappings:
Namespace Name Mixin selector official bLgq;b(I)Iintermediary method_33101Lnet/minecraft/class_5742;method_33101(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.- 参数:
chunkCoord- a chunk x or z- Implementation Requirements:
- This implementation returns
chunkCoord * 4. - Mappings:
Namespace Name Mixin selector official cLgq;c(I)Iintermediary method_33102Lnet/minecraft/class_5742;method_33102(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.- 参数:
biomeCoord- a biome x or z- Implementation Requirements:
- This implementation returns
biomeCoord / 4. - Mappings:
Namespace Name Mixin selector official dLgq;d(I)Iintermediary method_33103Lnet/minecraft/class_5742;method_33103(I)Inamed toChunkLnet/minecraft/world/biome/source/BiomeCoords;toChunk(I)I
-
-