[NeoForge] 26.2-6.5.0
Curse Maven Snippet
What's new
26.2 - 6.5.0
New Features
- Added
GameTestPlayersto thetestFixturesGameTest helpers (alongsideGameTestContainers/GameTestEntities/GameTestMenus):makeFacingPlayercreates a mock server player positioned and oriented at a target block, anduseItemcalls an item'suse()and applies the resultingInteractionResult.Success#heldItemTransformedTo()to the held item — both needed for any GameTest simulating an item that overrides the generalItem#usedispatch (buckets doing their own reach-limited raycast, e.g.) rather thanuseOn/useWithoutItem, whichGameTestHelper#useBlockalready covers.makeFacingPlayeralso works around aNullPointerExceptionmock players hit callingServerPlayer#lookAtdirectly (it tries to send a look-rotation packet over a connection mock players don't have).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include