Closed lonefelidae16 closed 1 year ago
Refactor the feature of ReachAround placement. Shorter lines, more maintenability.
also resolve #211
Checklists
Compatibility
Block placement
Changes
update ReachAroundPlacement.java
ReachAroundPlacement.java
isNonFullBlock
Entity#getSteppingPos
checkReachAroundAndExecute
canReachAround
Entity#isOnGround
BlockState
BlockPos#down
update MinecraftClientMixin.java
MinecraftClientMixin.java
MinecraftClient.crosshairTarget
Refactor the feature of ReachAround placement. Shorter lines, more maintenability.
also resolve #211
Checklists
Compatibility
Block placement
Changes
update
ReachAroundPlacement.java
isNonFullBlock
, useEntity#getSteppingPos
insteadcheckReachAroundAndExecute
, due to injection method has changedcanReachAround
: private -> publiccanReachAround
:Entity#isOnGround
instead of checking theBlockState
Entity#getSteppingPos
instead ofBlockPos#down
to avoid collision errorupdate
MinecraftClientMixin.java
MinecraftClient.crosshairTarget
instead of executing the unique methodcheckReachAroundAndExecute