Skip to content

Add more javadoc for machine classes#4783

Merged
gustovafing merged 24 commits into
1.20.1from
gus/trait-priority
Apr 19, 2026
Merged

Add more javadoc for machine classes#4783
gustovafing merged 24 commits into
1.20.1from
gus/trait-priority

Conversation

@gustovafing
Copy link
Copy Markdown
Member

@gustovafing gustovafing commented Apr 14, 2026

  • Add a bunch of javadoc to the machine classes
  • Also moves/removes some metamachine methods which aren't needed.
  • Also I updated all old references to BEs as tile entities and machines as MTES

@gustovafing gustovafing requested a review from a team as a code owner April 14, 2026 12:38
@github-actions github-actions Bot added 1.20.1 Tests: Passed Game Tests have passed on this PR labels Apr 14, 2026
@gustovafing gustovafing changed the title Add some smaller trait API features and more javadoc Add more javadoc for machine classes Apr 14, 2026
@gustovafing gustovafing reopened this Apr 14, 2026
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Apr 14, 2026
@github-actions github-actions Bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Apr 14, 2026
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Apr 15, 2026
@github-actions github-actions Bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Apr 15, 2026
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Apr 16, 2026
@github-actions github-actions Bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Apr 17, 2026
Comment on lines -105 to -117
@Override
public void onMachinePlaced(@Nullable LivingEntity player, ItemStack stack) {
super.onMachinePlaced(player, stack);
CompoundTag tag = stack.getTag();
if (tag != null) {
if (tag.contains("taped") && tag.getBoolean("taped")) {
this.inventory.storage.deserializeNBT(tag.getCompound("inventory"));
}
setRenderState(getRenderState().setValue(GTMachineModelProperties.IS_TAPED, isTaped));
syncDataHolder.markClientSyncFieldDirty("isTaped");
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this (and the taped property) removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inventory key is only saved when the machine is broken while taped, therefore there is no reason to check for it when the crate is placed

@gustovafing gustovafing merged commit 89f9401 into 1.20.1 Apr 19, 2026
4 checks passed
@gustovafing gustovafing deleted the gus/trait-priority branch April 19, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Tests: Passed Game Tests have passed on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants