mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
19 lines
494 B
Java
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;
|
|
}
|
|
}
|