public class DemoServerPlayerInteractionManager extends ServerPlayerInteractionManager
| Modifier and Type | Field and Description |
|---|---|
private boolean |
demoEnded |
private int |
reminderTicks |
private boolean |
sentHelp |
private int |
tick |
player, world| Constructor and Description |
|---|
DemoServerPlayerInteractionManager(ServerWorld world) |
| Modifier and Type | Method and Description |
|---|---|
ActionResult |
interactBlock(ServerPlayerEntity player,
World world,
ItemStack stack,
Hand hand,
BlockHitResult hitResult) |
ActionResult |
interactItem(ServerPlayerEntity player,
World world,
ItemStack stack,
Hand hand) |
void |
processBlockBreakingAction(BlockPos pos,
PlayerActionC2SPacket.Action action,
Direction direction,
int worldHeight) |
private void |
sendDemoReminder() |
void |
update() |
finishMining, getGameMode, getPreviousGameMode, isCreative, isSurvivalLike, setGameMode, setGameMode, setGameModeIfNotPresent, setWorld, tryBreakBlockprivate boolean sentHelp
private boolean demoEnded
private int reminderTicks
private int tick
public DemoServerPlayerInteractionManager(ServerWorld world)
public void update()
update in class ServerPlayerInteractionManagerprivate void sendDemoReminder()
public void processBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight)
processBlockBreakingAction in class ServerPlayerInteractionManagerpublic ActionResult interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
interactItem in class ServerPlayerInteractionManagerpublic ActionResult interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
interactBlock in class ServerPlayerInteractionManager