player swaps hands event
This commit is contained in:
1 parent
9d619f4797
commit
786e282889
7 files changed
+30
No files matched your search
@@ -532,6 +532,14 @@ public class CarpetEventServer
|
||||
}, player::getCommandSource);
|
||||
}
|
||||
},
|
||||
PLAYER_SWAPS_HANDS("player_swaps_hands", 1, false)
|
||||
{
|
||||
@Override
|
||||
public void onPlayerEvent(ServerPlayerEntity player)
|
||||
{
|
||||
handler.call( () -> Collections.singletonList(((c, t) -> new EntityValue(player))), player::getCommandSource);
|
||||
}
|
||||
},
|
||||
PLAYER_TAKES_DAMAGE("player_takes_damage", 4, false)
|
||||
{
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user