mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Save forseSkip to NBT
Not included in `serialize()` and `deserialize()` because it is server-side-only
This commit is contained in:
parent
f8d827d6cd
commit
8c196f05ca
@ -52,6 +52,7 @@ public class TileEntityMachineAutosaw extends TileEntityLoadedBase implements IB
|
|||||||
public FluidTank tank;
|
public FluidTank tank;
|
||||||
|
|
||||||
public boolean isOn;
|
public boolean isOn;
|
||||||
|
private int forceSkip;
|
||||||
public float syncYaw;
|
public float syncYaw;
|
||||||
public float rotationYaw;
|
public float rotationYaw;
|
||||||
public float prevRotationYaw;
|
public float prevRotationYaw;
|
||||||
@ -63,7 +64,6 @@ public class TileEntityMachineAutosaw extends TileEntityLoadedBase implements IB
|
|||||||
private int state = 0;
|
private int state = 0;
|
||||||
|
|
||||||
private int turnProgress;
|
private int turnProgress;
|
||||||
private int forceSkip = 0;
|
|
||||||
|
|
||||||
public float spin;
|
public float spin;
|
||||||
public float lastSpin;
|
public float lastSpin;
|
||||||
@ -365,6 +365,7 @@ public class TileEntityMachineAutosaw extends TileEntityLoadedBase implements IB
|
|||||||
public void readFromNBT(NBTTagCompound nbt) {
|
public void readFromNBT(NBTTagCompound nbt) {
|
||||||
super.readFromNBT(nbt);
|
super.readFromNBT(nbt);
|
||||||
this.isOn = nbt.getBoolean("isOn");
|
this.isOn = nbt.getBoolean("isOn");
|
||||||
|
this.forceSkip = nbt.getInteger("skip");
|
||||||
this.rotationYaw = nbt.getFloat("yaw");
|
this.rotationYaw = nbt.getFloat("yaw");
|
||||||
this.rotationPitch = nbt.getFloat("pitch");
|
this.rotationPitch = nbt.getFloat("pitch");
|
||||||
this.state = nbt.getInteger("state");
|
this.state = nbt.getInteger("state");
|
||||||
@ -375,6 +376,7 @@ public class TileEntityMachineAutosaw extends TileEntityLoadedBase implements IB
|
|||||||
public void writeToNBT(NBTTagCompound nbt) {
|
public void writeToNBT(NBTTagCompound nbt) {
|
||||||
super.writeToNBT(nbt);
|
super.writeToNBT(nbt);
|
||||||
nbt.setBoolean("isOn", this.isOn);
|
nbt.setBoolean("isOn", this.isOn);
|
||||||
|
nbt.setInteger("skip", this.forceSkip);
|
||||||
nbt.setFloat("yaw", this.rotationYaw);
|
nbt.setFloat("yaw", this.rotationYaw);
|
||||||
nbt.setFloat("pitch", this.rotationPitch);
|
nbt.setFloat("pitch", this.rotationPitch);
|
||||||
nbt.setInteger("state", this.state);
|
nbt.setInteger("state", this.state);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user