mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Feature: API to switch items in the offhand/mainhand (#4819)
This commit is contained in:
parent
48311f8771
commit
813d197887
2 changed files with 11 additions and 0 deletions
|
@ -96,4 +96,9 @@ public class GeyserEntityData implements EntityData {
|
|||
public boolean isMovementLocked() {
|
||||
return !movementLockOwners.isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void switchHands() {
|
||||
session.requestOffhandSwap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue