Package net.minecraft.server.network
Class ServerPlayerInteractionManager
java.lang.Object
net.minecraft.server.network.ServerPlayerInteractionManager
- Direct Known Subclasses:
DemoServerPlayerInteractionManager
- Mappings:
Namespace Name named net/minecraft/server/network/ServerPlayerInteractionManagerintermediary net/minecraft/class_3225official axh
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate BlockPosprivate intprivate booleanprivate static final doubleprivate GameModeprivate static final Loggerprivate booleanprivate BlockPosprotected final ServerPlayerEntityprivate GameModeprivate intprivate intprotected ServerWorld -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchangeGameMode(GameMode gameMode) Checks if current game mode is different togameMode, and change it if so.private floatcontinueMining(BlockState state, BlockPos pos, int failedStartMiningTime) voidfinishMining(BlockPos pos, int sequence, String reason) @Nullable GameModeinteractBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) booleanprivate booleanReturns whether the player is hovering on the ground without collisions, up to 1m.booleanprivate voidonBlockBreakingAction(BlockPos pos, boolean success, int sequence, String reason) voidprocessBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) protected voidsetGameMode(GameMode gameMode, @Nullable GameMode previousGameMode) voidsetWorld(ServerWorld world) booleantryBreakBlock(BlockPos pos) voidupdate()
-
Field Details
-
field_62843
private static final double field_62843- See Also:
- Mappings:
Namespace Name Mixin selector named field_62843Lnet/minecraft/server/network/ServerPlayerInteractionManager;field_62843:Dintermediary field_62843Lnet/minecraft/class_3225;field_62843:Dofficial aLaxh;a:D
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/network/ServerPlayerInteractionManager;LOGGER:Lorg/slf4j/Logger;intermediary field_20325Lnet/minecraft/class_3225;field_20325:Lorg/slf4j/Logger;official bLaxh;b:Lorg/slf4j/Logger;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/server/network/ServerPlayerInteractionManager;world:Lnet/minecraft/server/world/ServerWorld;intermediary field_14007Lnet/minecraft/class_3225;field_14007:Lnet/minecraft/class_3218;official cLaxh;c:Laxf;
-
player
- Mappings:
Namespace Name Mixin selector named playerLnet/minecraft/server/network/ServerPlayerInteractionManager;player:Lnet/minecraft/server/network/ServerPlayerEntity;intermediary field_14008Lnet/minecraft/class_3225;field_14008:Lnet/minecraft/class_3222;official dLaxh;d:Laxg;
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;gameMode:Lnet/minecraft/world/GameMode;intermediary field_14005Lnet/minecraft/class_3225;field_14005:Lnet/minecraft/class_1934;official eLaxh;e:Ldvd;
-
previousGameMode
- Mappings:
Namespace Name Mixin selector named previousGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;previousGameMode:Lnet/minecraft/world/GameMode;intermediary field_25715Lnet/minecraft/class_3225;field_25715:Lnet/minecraft/class_1934;official fLaxh;f:Ldvd;
-
mining
private boolean mining- Mappings:
Namespace Name Mixin selector named miningLnet/minecraft/server/network/ServerPlayerInteractionManager;mining:Zintermediary field_14003Lnet/minecraft/class_3225;field_14003:Zofficial gLaxh;g:Z
-
startMiningTime
private int startMiningTime- Mappings:
Namespace Name Mixin selector named startMiningTimeLnet/minecraft/server/network/ServerPlayerInteractionManager;startMiningTime:Iintermediary field_20326Lnet/minecraft/class_3225;field_20326:Iofficial hLaxh;h:I
-
miningPos
- Mappings:
Namespace Name Mixin selector named miningPosLnet/minecraft/server/network/ServerPlayerInteractionManager;miningPos:Lnet/minecraft/util/math/BlockPos;intermediary field_20327Lnet/minecraft/class_3225;field_20327:Lnet/minecraft/class_2338;official iLaxh;i:Lis;
-
tickCounter
private int tickCounter- Mappings:
Namespace Name Mixin selector named tickCounterLnet/minecraft/server/network/ServerPlayerInteractionManager;tickCounter:Iintermediary field_14000Lnet/minecraft/class_3225;field_14000:Iofficial jLaxh;j:I
-
failedToMine
private boolean failedToMine- Mappings:
Namespace Name Mixin selector named failedToMineLnet/minecraft/server/network/ServerPlayerInteractionManager;failedToMine:Zintermediary field_20328Lnet/minecraft/class_3225;field_20328:Zofficial kLaxh;k:Z
-
failedMiningPos
- Mappings:
Namespace Name Mixin selector named failedMiningPosLnet/minecraft/server/network/ServerPlayerInteractionManager;failedMiningPos:Lnet/minecraft/util/math/BlockPos;intermediary field_20329Lnet/minecraft/class_3225;field_20329:Lnet/minecraft/class_2338;official lLaxh;l:Lis;
-
failedStartMiningTime
private int failedStartMiningTime- Mappings:
Namespace Name Mixin selector named failedStartMiningTimeLnet/minecraft/server/network/ServerPlayerInteractionManager;failedStartMiningTime:Iintermediary field_20330Lnet/minecraft/class_3225;field_20330:Iofficial mLaxh;m:I
-
blockBreakingProgress
private int blockBreakingProgress- Mappings:
Namespace Name Mixin selector named blockBreakingProgressLnet/minecraft/server/network/ServerPlayerInteractionManager;blockBreakingProgress:Iintermediary field_20331Lnet/minecraft/class_3225;field_20331:Iofficial nLaxh;n:I
-
-
Constructor Details
-
ServerPlayerInteractionManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/network/ServerPlayerInteractionManager;<init>(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary <init>Lnet/minecraft/class_3225;<init>(Lnet/minecraft/class_3222;)Vofficial <init>Laxh;<init>(Laxg;)V
-
-
Method Details
-
changeGameMode
Checks if current game mode is different togameMode, and change it if so.- Returns:
- whether the current game mode has been changed
- Mappings:
Namespace Name Mixin selector named changeGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;changeGameMode(Lnet/minecraft/world/GameMode;)Zintermediary method_30118Lnet/minecraft/class_3225;method_30118(Lnet/minecraft/class_1934;)Zofficial aLaxh;a(Ldvd;)Z
-
setGameMode
- Mappings:
Namespace Name Mixin selector named setGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;setGameMode(Lnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;)Vintermediary method_14261Lnet/minecraft/class_3225;method_14261(Lnet/minecraft/class_1934;Lnet/minecraft/class_1934;)Vofficial aLaxh;a(Ldvd;Ldvd;)V
-
isHoveringOnGround
private boolean isHoveringOnGround()Returns whether the player is hovering on the ground without collisions, up to 1m.If so, the player stops flying upon switching from spectator mode.
- Returns:
- whether the player is hovering on the ground without collisions, up to 1m
- Mappings:
Namespace Name Mixin selector named isHoveringOnGroundLnet/minecraft/server/network/ServerPlayerInteractionManager;isHoveringOnGround()Zintermediary method_74539Lnet/minecraft/class_3225;method_74539()Zofficial fLaxh;f()Z
-
getGameMode
- Mappings:
Namespace Name Mixin selector named getGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;getGameMode()Lnet/minecraft/world/GameMode;intermediary method_14257Lnet/minecraft/class_3225;method_14257()Lnet/minecraft/class_1934;official bLaxh;b()Ldvd;
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector named getPreviousGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;getPreviousGameMode()Lnet/minecraft/world/GameMode;intermediary method_30119Lnet/minecraft/class_3225;method_30119()Lnet/minecraft/class_1934;official cLaxh;c()Ldvd;
-
isSurvivalLike
public boolean isSurvivalLike()- Mappings:
Namespace Name Mixin selector named isSurvivalLikeLnet/minecraft/server/network/ServerPlayerInteractionManager;isSurvivalLike()Zintermediary method_14267Lnet/minecraft/class_3225;method_14267()Zofficial dLaxh;d()Z
-
isCreative
public boolean isCreative()- Mappings:
Namespace Name Mixin selector named isCreativeLnet/minecraft/server/network/ServerPlayerInteractionManager;isCreative()Zintermediary method_14268Lnet/minecraft/class_3225;method_14268()Zofficial eLaxh;e()Z
-
update
public void update()- Mappings:
Namespace Name Mixin selector named updateLnet/minecraft/server/network/ServerPlayerInteractionManager;update()Vintermediary method_14264Lnet/minecraft/class_3225;method_14264()Vofficial aLaxh;a()V
-
continueMining
- Mappings:
Namespace Name Mixin selector named continueMiningLnet/minecraft/server/network/ServerPlayerInteractionManager;continueMining(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;I)Fintermediary method_21716Lnet/minecraft/class_3225;method_21716(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;I)Fofficial aLaxh;a(Lemz;Lis;I)F
-
onBlockBreakingAction
- Mappings:
Namespace Name Mixin selector named onBlockBreakingActionLnet/minecraft/server/network/ServerPlayerInteractionManager;onBlockBreakingAction(Lnet/minecraft/util/math/BlockPos;ZILjava/lang/String;)Vintermediary method_41250Lnet/minecraft/class_3225;method_41250(Lnet/minecraft/class_2338;ZILjava/lang/String;)Vofficial aLaxh;a(Lis;ZILjava/lang/String;)V
-
processBlockBreakingAction
public void processBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) - Mappings:
Namespace Name Mixin selector named processBlockBreakingActionLnet/minecraft/server/network/ServerPlayerInteractionManager;processBlockBreakingAction(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;Lnet/minecraft/util/math/Direction;II)Vintermediary method_14263Lnet/minecraft/class_3225;method_14263(Lnet/minecraft/class_2338;Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2350;II)Vofficial aLaxh;a(Lis;Laji$a;Liz;II)V
-
finishMining
- Mappings:
Namespace Name Mixin selector named finishMiningLnet/minecraft/server/network/ServerPlayerInteractionManager;finishMining(Lnet/minecraft/util/math/BlockPos;ILjava/lang/String;)Vintermediary method_21717Lnet/minecraft/class_3225;method_21717(Lnet/minecraft/class_2338;ILjava/lang/String;)Vofficial aLaxh;a(Lis;ILjava/lang/String;)V
-
tryBreakBlock
- Mappings:
Namespace Name Mixin selector named tryBreakBlockLnet/minecraft/server/network/ServerPlayerInteractionManager;tryBreakBlock(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_14266Lnet/minecraft/class_3225;method_14266(Lnet/minecraft/class_2338;)Zofficial aLaxh;a(Lis;)Z
-
interactItem
public ActionResult interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) - Mappings:
Namespace Name Mixin selector named interactItemLnet/minecraft/server/network/ServerPlayerInteractionManager;interactItem(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_14256Lnet/minecraft/class_3225;method_14256(Lnet/minecraft/class_3222;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLaxh;a(Laxg;Ldvg;Ldkm;Lccz;)Lcda;
-
interactBlock
public ActionResult interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) - Mappings:
Namespace Name Mixin selector named interactBlockLnet/minecraft/server/network/ServerPlayerInteractionManager;interactBlock(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_14262Lnet/minecraft/class_3225;method_14262(Lnet/minecraft/class_3222;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official aLaxh;a(Laxg;Ldvg;Ldkm;Lccz;Lfsa;)Lcda;
-
setWorld
- Mappings:
Namespace Name Mixin selector named setWorldLnet/minecraft/server/network/ServerPlayerInteractionManager;setWorld(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_14259Lnet/minecraft/class_3225;method_14259(Lnet/minecraft/class_3218;)Vofficial aLaxh;a(Laxf;)V
-