Package net.minecraft.server.network
Class ServerPlayerInteractionManager
java.lang.Object
net.minecraft.server.network.ServerPlayerInteractionManager
- Direct Known Subclasses:
DemoServerPlayerInteractionManager
- Mappings:
Namespace Name official aksintermediary net/minecraft/class_3225named net/minecraft/server/network/ServerPlayerInteractionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate BlockPosprivate intprivate booleanprivate GameModeprivate static final Loggerprivate booleanprivate BlockPosprotected final ServerPlayerEntityprivate @Nullable 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) booleanbooleanprivate voidmethod_41250(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
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLaks;a:Lorg/slf4j/Logger;intermediary field_20325Lnet/minecraft/class_3225;field_20325:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/server/network/ServerPlayerInteractionManager;LOGGER:Lorg/slf4j/Logger;
-
world
- Mappings:
Namespace Name Mixin selector official cLaks;c:Lakq;intermediary field_14007Lnet/minecraft/class_3225;field_14007:Lnet/minecraft/class_3218;named worldLnet/minecraft/server/network/ServerPlayerInteractionManager;world:Lnet/minecraft/server/world/ServerWorld;
-
player
- Mappings:
Namespace Name Mixin selector official dLaks;d:Lakr;intermediary field_14008Lnet/minecraft/class_3225;field_14008:Lnet/minecraft/class_3222;named playerLnet/minecraft/server/network/ServerPlayerInteractionManager;player:Lnet/minecraft/server/network/ServerPlayerEntity;
-
gameMode
- Mappings:
Namespace Name Mixin selector official bLaks;b:Lcps;intermediary field_14005Lnet/minecraft/class_3225;field_14005:Lnet/minecraft/class_1934;named gameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;gameMode:Lnet/minecraft/world/GameMode;
-
previousGameMode
- Mappings:
Namespace Name Mixin selector official eLaks;e:Lcps;intermediary field_25715Lnet/minecraft/class_3225;field_25715:Lnet/minecraft/class_1934;named previousGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;previousGameMode:Lnet/minecraft/world/GameMode;
-
mining
private boolean mining- Mappings:
Namespace Name Mixin selector official fLaks;f:Zintermediary field_14003Lnet/minecraft/class_3225;field_14003:Znamed miningLnet/minecraft/server/network/ServerPlayerInteractionManager;mining:Z
-
startMiningTime
private int startMiningTime- Mappings:
Namespace Name Mixin selector official gLaks;g:Iintermediary field_20326Lnet/minecraft/class_3225;field_20326:Inamed startMiningTimeLnet/minecraft/server/network/ServerPlayerInteractionManager;startMiningTime:I
-
miningPos
- Mappings:
Namespace Name Mixin selector official hLaks;h:Lgw;intermediary field_20327Lnet/minecraft/class_3225;field_20327:Lnet/minecraft/class_2338;named miningPosLnet/minecraft/server/network/ServerPlayerInteractionManager;miningPos:Lnet/minecraft/util/math/BlockPos;
-
tickCounter
private int tickCounter- Mappings:
Namespace Name Mixin selector official iLaks;i:Iintermediary field_14000Lnet/minecraft/class_3225;field_14000:Inamed tickCounterLnet/minecraft/server/network/ServerPlayerInteractionManager;tickCounter:I
-
failedToMine
private boolean failedToMine- Mappings:
Namespace Name Mixin selector official jLaks;j:Zintermediary field_20328Lnet/minecraft/class_3225;field_20328:Znamed failedToMineLnet/minecraft/server/network/ServerPlayerInteractionManager;failedToMine:Z
-
failedMiningPos
- Mappings:
Namespace Name Mixin selector official kLaks;k:Lgw;intermediary field_20329Lnet/minecraft/class_3225;field_20329:Lnet/minecraft/class_2338;named failedMiningPosLnet/minecraft/server/network/ServerPlayerInteractionManager;failedMiningPos:Lnet/minecraft/util/math/BlockPos;
-
failedStartMiningTime
private int failedStartMiningTime- Mappings:
Namespace Name Mixin selector official lLaks;l:Iintermediary field_20330Lnet/minecraft/class_3225;field_20330:Inamed failedStartMiningTimeLnet/minecraft/server/network/ServerPlayerInteractionManager;failedStartMiningTime:I
-
blockBreakingProgress
private int blockBreakingProgress- Mappings:
Namespace Name Mixin selector official mLaks;m:Iintermediary field_20331Lnet/minecraft/class_3225;field_20331:Inamed blockBreakingProgressLnet/minecraft/server/network/ServerPlayerInteractionManager;blockBreakingProgress:I
-
-
Constructor Details
-
ServerPlayerInteractionManager
- Mappings:
Namespace Name Mixin selector official <init>Laks;<init>(Lakr;)Vintermediary <init>Lnet/minecraft/class_3225;<init>(Lnet/minecraft/class_3222;)Vnamed <init>Lnet/minecraft/server/network/ServerPlayerInteractionManager;<init>(Lnet/minecraft/server/network/ServerPlayerEntity;)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 official aLaks;a(Lcps;)Zintermediary method_30118Lnet/minecraft/class_3225;method_30118(Lnet/minecraft/class_1934;)Znamed changeGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;changeGameMode(Lnet/minecraft/world/GameMode;)Z
-
setGameMode
- Mappings:
Namespace Name Mixin selector official aLaks;a(Lcps;Lcps;)Vintermediary method_14261Lnet/minecraft/class_3225;method_14261(Lnet/minecraft/class_1934;Lnet/minecraft/class_1934;)Vnamed setGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;setGameMode(Lnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;)V
-
getGameMode
- Mappings:
Namespace Name Mixin selector official bLaks;b()Lcps;intermediary method_14257Lnet/minecraft/class_3225;method_14257()Lnet/minecraft/class_1934;named getGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;getGameMode()Lnet/minecraft/world/GameMode;
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector official cLaks;c()Lcps;intermediary method_30119Lnet/minecraft/class_3225;method_30119()Lnet/minecraft/class_1934;named getPreviousGameModeLnet/minecraft/server/network/ServerPlayerInteractionManager;getPreviousGameMode()Lnet/minecraft/world/GameMode;
-
isSurvivalLike
public boolean isSurvivalLike()- Mappings:
Namespace Name Mixin selector official dLaks;d()Zintermediary method_14267Lnet/minecraft/class_3225;method_14267()Znamed isSurvivalLikeLnet/minecraft/server/network/ServerPlayerInteractionManager;isSurvivalLike()Z
-
isCreative
public boolean isCreative()- Mappings:
Namespace Name Mixin selector official eLaks;e()Zintermediary method_14268Lnet/minecraft/class_3225;method_14268()Znamed isCreativeLnet/minecraft/server/network/ServerPlayerInteractionManager;isCreative()Z
-
update
public void update()- Mappings:
Namespace Name Mixin selector official aLaks;a()Vintermediary method_14264Lnet/minecraft/class_3225;method_14264()Vnamed updateLnet/minecraft/server/network/ServerPlayerInteractionManager;update()V
-
continueMining
- Mappings:
Namespace Name Mixin selector official aLaks;a(Ldfj;Lgw;I)Fintermediary method_21716Lnet/minecraft/class_3225;method_21716(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;I)Fnamed continueMiningLnet/minecraft/server/network/ServerPlayerInteractionManager;continueMining(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;I)F
-
method_41250
- Mappings:
Namespace Name Mixin selector official aLaks;a(Lgw;ZILjava/lang/String;)Vintermediary method_41250Lnet/minecraft/class_3225;method_41250(Lnet/minecraft/class_2338;ZILjava/lang/String;)Vnamed method_41250Lnet/minecraft/server/network/ServerPlayerInteractionManager;method_41250(Lnet/minecraft/util/math/BlockPos;ZILjava/lang/String;)V
-
processBlockBreakingAction
public void processBlockBreakingAction(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) - Mappings:
Namespace Name Mixin selector official aLaks;a(Lgw;Lace$a;Lha;II)Vintermediary method_14263Lnet/minecraft/class_3225;method_14263(Lnet/minecraft/class_2338;Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2350;II)Vnamed 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)V
-
finishMining
- Mappings:
Namespace Name Mixin selector official aLaks;a(Lgw;ILjava/lang/String;)Vintermediary method_21717Lnet/minecraft/class_3225;method_21717(Lnet/minecraft/class_2338;ILjava/lang/String;)Vnamed finishMiningLnet/minecraft/server/network/ServerPlayerInteractionManager;finishMining(Lnet/minecraft/util/math/BlockPos;ILjava/lang/String;)V
-
tryBreakBlock
- Mappings:
Namespace Name Mixin selector official aLaks;a(Lgw;)Zintermediary method_14266Lnet/minecraft/class_3225;method_14266(Lnet/minecraft/class_2338;)Znamed tryBreakBlockLnet/minecraft/server/network/ServerPlayerInteractionManager;tryBreakBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
interactItem
public ActionResult interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) - Mappings:
Namespace Name Mixin selector official aLaks;a(Lakr;Lcpv;Lcjf;Lbgx;)Lbgy;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;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;
-
interactBlock
public ActionResult interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) - Mappings:
Namespace Name Mixin selector official aLaks;a(Lakr;Lcpv;Lcjf;Lbgx;Lehj;)Lbgy;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;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;
-
setWorld
- Mappings:
Namespace Name Mixin selector official aLaks;a(Lakq;)Vintermediary method_14259Lnet/minecraft/class_3225;method_14259(Lnet/minecraft/class_3218;)Vnamed setWorldLnet/minecraft/server/network/ServerPlayerInteractionManager;setWorld(Lnet/minecraft/server/world/ServerWorld;)V
-