Skip to content

fix(component): level/world Lua API parity batch (NEW-148..151, 155, 161, 162)#59

Open
ximaks00-hue wants to merge 2 commits into
akki697222:dev-MC1.20from
ximaks00-hue:fix/new-148-161-level-api-parity
Open

fix(component): level/world Lua API parity batch (NEW-148..151, 155, 161, 162)#59
ximaks00-hue wants to merge 2 commits into
akki697222:dev-MC1.20from
ximaks00-hue:fix/new-148-161-level-api-parity

Conversation

@ximaks00-hue

Copy link
Copy Markdown
Contributor

Summary

  • NEW-148: re-add getStackInSlot alias for 1.12 scripts
  • NEW-149/150: BlockState.canBeReplaced() and FluidState for blockContent
  • NEW-151: getMaxLocalRawBrightness instead of getLightEmission in DebugCard
  • NEW-155: getTankCount returns 0 for empty handlers
  • NEW-161/162: non-null entity predicate (1.20.1 NPE on null filter)

Test plan

  • Adapter getStackInSlot works
  • scanContentsAt / closestEntity no NPE
  • DebugCard light value matches in-world brightness

… NEW-150, NEW-151, NEW-155, NEW-161, NEW-162)

- Re-add getStackInSlot alias delegating to getItem for 1.12 scripts (NEW-148).

- Use BlockState.canBeReplaced() and FluidState instead of defaultBlockState / LiquidBlock instanceof checks (NEW-149, NEW-150).

- DebugCard.getLightValue now reports combined brightness via getMaxLocalRawBrightness, not block emission (NEW-151).

- LevelTankAnalytics.getTankCount returns 0 for empty handlers instead of an error (NEW-155).

- Replace null entity predicates with (_ => true); MC 1.20.1 NPEs on null filters (NEW-161, NEW-162).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants