public void readFromNbt(NbtCompound tag) { this.changeLayer(tag.getInt("layer"), false); this.setZoom(tag.getInt("zoomLevel", this.minZoom)); this.setCameraPos(tag.getVector2("cameraPos")); this.inCreativeMode = tag.getBool("inCreativeMode"); }
public virtual void readFromNbt(NbtCompound tag) { this.transform.position = tag.getVector2("position"); this.depth = tag.getInt("depth"); this.rotation = Rotation.ALL[Mathf.Clamp(tag.getInt("facing"), 0, 3)]; this.guid = tag.getGuid("guid"); }