fix(component): level/world Lua API parity batch (NEW-148..151, 155, 161, 162)#59
Open
ximaks00-hue wants to merge 2 commits into
Open
Conversation
… 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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getStackInSlotalias for 1.12 scriptsBlockState.canBeReplaced()andFluidStatefor blockContentgetMaxLocalRawBrightnessinstead ofgetLightEmissionin DebugCardgetTankCountreturns 0 for empty handlersTest plan
getStackInSlotworksscanContentsAt/closestEntityno NPE