Skip to content

Commit

Permalink
Update fDisplay to setTransformation from object
Browse files Browse the repository at this point in the history
  • Loading branch information
Ste3et committed Jan 8, 2024
1 parent 1f5532e commit d478a22
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -223,6 +223,15 @@ private void writeTransformation() {
getWatcher().setObject(new WrappedDataWatcherObject(displayField.getVersionIndex() + 13, Registry.get(Quaternionf.class)), transformation.getRightRotation());
}

public fDisplay setTransformation(Transformation transformation) {
this.translation.setValue(transformation.getTranslation());
this.scale.setValue(transformation.getScale());
this.leftRotation.setValue(transformation.getLeftRotation());
this.rightRotation.setValue(transformation.getRightRotation());
this.writeTransformation();
return this;
}

public fDisplay setBillboard(Billboard billboard) {
this.billboard.setValue(billboard);
getWatcher().setObject(new WrappedDataWatcherObject(displayField.getVersionIndex() + 14, Registry.get(Byte.class)), (byte) this.getBillboard().ordinal());
Expand Down

0 comments on commit d478a22

Please sign in to comment.