Package net.minecraft.server.management
Class DemoPlayerInteractionManager
- java.lang.Object
-
- net.minecraft.server.management.PlayerInteractionManager
-
- net.minecraft.server.management.DemoPlayerInteractionManager
-
public class DemoPlayerInteractionManager extends PlayerInteractionManager
-
-
Field Summary
Fields Modifier and Type Field Description private int
demoEndedReminder
private boolean
demoHasEnded
private boolean
displayedIntro
private int
gameModeTicks
-
Fields inherited from class net.minecraft.server.management.PlayerInteractionManager
level, player
-
-
Constructor Summary
Constructors Constructor Description DemoPlayerInteractionManager(ServerWorld p_i50709_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleBlockBreakAction(BlockPos p_225416_1_, CPlayerDiggingPacket.Action p_225416_2_, Direction p_225416_3_, int p_225416_4_)
private void
outputDemoReminder()
void
tick()
ActionResultType
useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_)
ActionResultType
useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_)
-
Methods inherited from class net.minecraft.server.management.PlayerInteractionManager
destroyAndAck, destroyBlock, getGameModeForPlayer, getPreviousGameModeForPlayer, isCreative, isSurvival, setGameModeForPlayer, setGameModeForPlayer, setLevel, updateGameMode
-
-
-
-
Constructor Detail
-
DemoPlayerInteractionManager
public DemoPlayerInteractionManager(ServerWorld p_i50709_1_)
-
-
Method Detail
-
tick
public void tick()
- Overrides:
tick
in classPlayerInteractionManager
-
outputDemoReminder
private void outputDemoReminder()
-
handleBlockBreakAction
public void handleBlockBreakAction(BlockPos p_225416_1_, CPlayerDiggingPacket.Action p_225416_2_, Direction p_225416_3_, int p_225416_4_)
- Overrides:
handleBlockBreakAction
in classPlayerInteractionManager
-
useItem
public ActionResultType useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_)
- Overrides:
useItem
in classPlayerInteractionManager
-
useItemOn
public ActionResultType useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_)
- Overrides:
useItemOn
in classPlayerInteractionManager
-
-