Package net.minecraft.server.management
Class DemoPlayerInteractionManager
java.lang.Object
net.minecraft.server.management.PlayerInteractionManager
net.minecraft.server.management.DemoPlayerInteractionManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private boolean
private boolean
private int
Fields inherited from class net.minecraft.server.management.PlayerInteractionManager
level, player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleBlockBreakAction
(BlockPos p_225416_1_, CPlayerDiggingPacket.Action p_225416_2_, Direction p_225416_3_, int p_225416_4_) private void
void
tick()
useItem
(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_) 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
-
Field Details
-
displayedIntro
private boolean displayedIntro -
demoHasEnded
private boolean demoHasEnded -
demoEndedReminder
private int demoEndedReminder -
gameModeTicks
private int gameModeTicks
-
-
Constructor Details
-
DemoPlayerInteractionManager
-
-
Method Details
-
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
-