37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
package com.bgsoftware.wildloaders.nms.v1_18_R2.mappings.net.minecraft.world.level;
|
|
|
|
import com.bgsoftware.common.remaps.Remap;
|
|
import com.bgsoftware.wildloaders.nms.v1_18_R2.mappings.MappedObject;
|
|
|
|
public class ChunkCoordIntPair extends MappedObject<net.minecraft.world.level.ChunkCoordIntPair> {
|
|
|
|
public ChunkCoordIntPair(net.minecraft.world.level.ChunkCoordIntPair handle) {
|
|
super(handle);
|
|
}
|
|
|
|
@Remap(classPath = "net.minecraft.world.level.ChunkPos",
|
|
name = "x",
|
|
type = Remap.Type.FIELD,
|
|
remappedName = "c")
|
|
public int getX() {
|
|
return handle.c;
|
|
}
|
|
|
|
@Remap(classPath = "net.minecraft.world.level.ChunkPos",
|
|
name = "z",
|
|
type = Remap.Type.FIELD,
|
|
remappedName = "d")
|
|
public int getZ() {
|
|
return handle.d;
|
|
}
|
|
|
|
@Remap(classPath = "net.minecraft.world.level.ChunkPos",
|
|
name = "asLong",
|
|
type = Remap.Type.METHOD,
|
|
remappedName = "a")
|
|
public static long asLong(int x, int z) {
|
|
return net.minecraft.world.level.ChunkCoordIntPair.a(x, z);
|
|
}
|
|
|
|
}
|