mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Refactoring
This commit is contained in:
1 parent
fd330233dd
commit
56ccd3188d
76 files changed
+876
-433
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package WayofTime.alchemicalWizardry.api.rituals;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import WayofTime.alchemicalWizardry.common.Int3;
|
||||
|
||||
/**
|
||||
* This class is used to pass ritual-specific data into the RitualEffect from the containing Master Ritual Stone. This is basically used as auxillarary storage,
|
||||
@@ -9,13 +10,33 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
*/
|
||||
public class LocalRitualStorage
|
||||
{
|
||||
public void writeToNBT(NBTTagCompound tag)
|
||||
{
|
||||
public int xCoord;
|
||||
public int yCoord;
|
||||
public int zCoord;
|
||||
|
||||
public void writeToNBT(NBTTagCompound tag)
|
||||
{
|
||||
tag.setInteger("xCoord", xCoord);
|
||||
tag.setInteger("yCoord", yCoord);
|
||||
tag.setInteger("zCoord", zCoord);
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound tag)
|
||||
{
|
||||
this.xCoord = tag.getInteger("xCoord");
|
||||
this.yCoord = tag.getInteger("yCoord");
|
||||
this.zCoord = tag.getInteger("zCoord");
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound tag)
|
||||
public Int3 getLocation()
|
||||
{
|
||||
|
||||
return new Int3(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
public void setLocation(Int3 location)
|
||||
{
|
||||
this.xCoord = location.xCoord;
|
||||
this.yCoord = location.yCoord;
|
||||
this.zCoord = location.zCoord;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user