Files
BloodMagic/src/main/java/WayofTime/alchemicalWizardry/api/Int3.java
T
koolkrafter5andgithub-actions[bot] 3b2b31f733 Spring Cleaning (#127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-12 20:52:29 +02:00

19 lines
494 B
Java

package WayofTime.alchemicalWizardry.api;
import net.minecraft.nbt.NBTTagCompound;
public record Int3(int x, int y, int z) {
public static Int3 readFromNBT(NBTTagCompound tag) {
return new Int3(tag.getInteger("xCoord"), tag.getInteger("yCoord"), tag.getInteger("zCoord"));
}
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
tag.setInteger("xCoord", x);
tag.setInteger("yCoord", y);
tag.setInteger("zCoord", z);
return tag;
}
}