Package net.minecraft.server.network
Class DemoServerPlayerInteractionManager
java.lang.Object
net.minecraft.server.network.ServerPlayerInteractionManager
net.minecraft.server.network.DemoServerPlayerInteractionManager
public class DemoServerPlayerInteractionManager extends ServerPlayerInteractionManager
-
Field Summary
Fields Modifier and Type Field Description private booleandemoEndedprivate intreminderTicksprivate booleansentHelpprivate inttickFields inherited from class net.minecraft.server.network.ServerPlayerInteractionManager
player, world -
Constructor Summary
Constructors Constructor Description DemoServerPlayerInteractionManager(ServerPlayerEntity serverPlayerEntity) -
Method Summary
Modifier and Type Method Description ActionResultinteractBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultinteractItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)voidprocessBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight)private voidsendDemoReminder()voidupdate()Methods inherited from class net.minecraft.server.network.ServerPlayerInteractionManager
changeGameMode, finishMining, getGameMode, getPreviousGameMode, isCreative, isSurvivalLike, setGameMode, setWorld, tryBreakBlock
-
Field Details
-
sentHelp
private boolean sentHelp -
demoEnded
private boolean demoEnded -
reminderTicks
private int reminderTicks -
tick
private int tick
-
-
Constructor Details
-
DemoServerPlayerInteractionManager
-
-
Method Details
-
update
public void update()- Overrides:
updatein classServerPlayerInteractionManager
-
sendDemoReminder
private void sendDemoReminder() -
processBlockBreakingAction
public void processBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight)- Overrides:
processBlockBreakingActionin classServerPlayerInteractionManager
-
interactItem
public ActionResult interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)- Overrides:
interactItemin classServerPlayerInteractionManager
-
interactBlock
public ActionResult interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)- Overrides:
interactBlockin classServerPlayerInteractionManager
-