public class AuthEventHandler
extends java.lang.Object
Constructor and Description |
---|
AuthEventHandler() |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.text.LiteralText |
checkCanPlayerJoinServer(java.net.SocketAddress socketAddress,
com.mojang.authlib.GameProfile profile,
net.minecraft.server.PlayerManager manager) |
static net.minecraft.util.ActionResult |
onAttackEntity(net.minecraft.entity.player.PlayerEntity player) |
static boolean |
onBreakBlock(net.minecraft.entity.player.PlayerEntity player) |
static net.minecraft.util.ActionResult |
onDropItem(net.minecraft.entity.player.PlayerEntity player) |
static net.minecraft.util.ActionResult |
onPlayerChat(net.minecraft.entity.player.PlayerEntity player,
java.lang.String message) |
static void |
onPlayerJoin(net.minecraft.server.network.ServerPlayerEntity player) |
static void |
onPlayerLeave(net.minecraft.server.network.ServerPlayerEntity player) |
static net.minecraft.util.ActionResult |
onPlayerMove(net.minecraft.entity.player.PlayerEntity player) |
static net.minecraft.util.ActionResult |
onTakeItem(net.minecraft.entity.player.PlayerEntity player) |
static net.minecraft.util.ActionResult |
onUseBlock(net.minecraft.entity.player.PlayerEntity player) |
static net.minecraft.util.ActionResult |
onUseEntity(net.minecraft.entity.player.PlayerEntity player) |
static net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> |
onUseItem(net.minecraft.entity.player.PlayerEntity player) |
public static net.minecraft.text.LiteralText checkCanPlayerJoinServer(java.net.SocketAddress socketAddress, com.mojang.authlib.GameProfile profile, net.minecraft.server.PlayerManager manager)
public static void onPlayerJoin(net.minecraft.server.network.ServerPlayerEntity player)
public static void onPlayerLeave(net.minecraft.server.network.ServerPlayerEntity player)
public static net.minecraft.util.ActionResult onPlayerChat(net.minecraft.entity.player.PlayerEntity player, java.lang.String message)
public static net.minecraft.util.ActionResult onPlayerMove(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.util.ActionResult onUseBlock(net.minecraft.entity.player.PlayerEntity player)
public static boolean onBreakBlock(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> onUseItem(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.util.ActionResult onDropItem(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.util.ActionResult onTakeItem(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.util.ActionResult onAttackEntity(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.util.ActionResult onUseEntity(net.minecraft.entity.player.PlayerEntity player)