Class ServerPlayerInteractionManager

java.lang.Object
net.minecraft.server.network.ServerPlayerInteractionManager
Direct Known Subclasses:
DemoServerPlayerInteractionManager

public class ServerPlayerInteractionManager extends Object
Mappings:
Namespace Name
named net/minecraft/server/network/ServerPlayerInteractionManager
intermediary net/minecraft/class_3225
official aqv
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/network/ServerPlayerInteractionManager;LOGGER:Lorg/slf4j/Logger;
      intermediary field_20325 Lnet/minecraft/class_3225;field_20325:Lorg/slf4j/Logger;
      official a Laqv;a:Lorg/slf4j/Logger;
    • world

      protected ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/server/network/ServerPlayerInteractionManager;world:Lnet/minecraft/server/world/ServerWorld;
      intermediary field_14007 Lnet/minecraft/class_3225;field_14007:Lnet/minecraft/class_3218;
      official c Laqv;c:Laqt;
    • player

      protected final ServerPlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      named player Lnet/minecraft/server/network/ServerPlayerInteractionManager;player:Lnet/minecraft/server/network/ServerPlayerEntity;
      intermediary field_14008 Lnet/minecraft/class_3225;field_14008:Lnet/minecraft/class_3222;
      official d Laqv;d:Laqu;
    • gameMode

      private GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/server/network/ServerPlayerInteractionManager;gameMode:Lnet/minecraft/world/GameMode;
      intermediary field_14005 Lnet/minecraft/class_3225;field_14005:Lnet/minecraft/class_1934;
      official b Laqv;b:Ldcr;
    • previousGameMode

      @Nullable private @Nullable GameMode previousGameMode
      Mappings:
      Namespace Name Mixin selector
      named previousGameMode Lnet/minecraft/server/network/ServerPlayerInteractionManager;previousGameMode:Lnet/minecraft/world/GameMode;
      intermediary field_25715 Lnet/minecraft/class_3225;field_25715:Lnet/minecraft/class_1934;
      official e Laqv;e:Ldcr;
    • mining

      private boolean mining
      Mappings:
      Namespace Name Mixin selector
      named mining Lnet/minecraft/server/network/ServerPlayerInteractionManager;mining:Z
      intermediary field_14003 Lnet/minecraft/class_3225;field_14003:Z
      official f Laqv;f:Z
    • startMiningTime

      private int startMiningTime
      Mappings:
      Namespace Name Mixin selector
      named startMiningTime Lnet/minecraft/server/network/ServerPlayerInteractionManager;startMiningTime:I
      intermediary field_20326 Lnet/minecraft/class_3225;field_20326:I
      official g Laqv;g:I
    • miningPos

      private BlockPos miningPos
      Mappings:
      Namespace Name Mixin selector
      named miningPos Lnet/minecraft/server/network/ServerPlayerInteractionManager;miningPos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_20327 Lnet/minecraft/class_3225;field_20327:Lnet/minecraft/class_2338;
      official h Laqv;h:Ljd;
    • tickCounter

      private int tickCounter
      Mappings:
      Namespace Name Mixin selector
      named tickCounter Lnet/minecraft/server/network/ServerPlayerInteractionManager;tickCounter:I
      intermediary field_14000 Lnet/minecraft/class_3225;field_14000:I
      official i Laqv;i:I
    • failedToMine

      private boolean failedToMine
      Mappings:
      Namespace Name Mixin selector
      named failedToMine Lnet/minecraft/server/network/ServerPlayerInteractionManager;failedToMine:Z
      intermediary field_20328 Lnet/minecraft/class_3225;field_20328:Z
      official j Laqv;j:Z
    • failedMiningPos

      private BlockPos failedMiningPos
      Mappings:
      Namespace Name Mixin selector
      named failedMiningPos Lnet/minecraft/server/network/ServerPlayerInteractionManager;failedMiningPos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_20329 Lnet/minecraft/class_3225;field_20329:Lnet/minecraft/class_2338;
      official k Laqv;k:Ljd;
    • failedStartMiningTime

      private int failedStartMiningTime
      Mappings:
      Namespace Name Mixin selector
      named failedStartMiningTime Lnet/minecraft/server/network/ServerPlayerInteractionManager;failedStartMiningTime:I
      intermediary field_20330 Lnet/minecraft/class_3225;field_20330:I
      official l Laqv;l:I
    • blockBreakingProgress

      private int blockBreakingProgress
      Mappings:
      Namespace Name Mixin selector
      named blockBreakingProgress Lnet/minecraft/server/network/ServerPlayerInteractionManager;blockBreakingProgress:I
      intermediary field_20331 Lnet/minecraft/class_3225;field_20331:I
      official m Laqv;m:I
  • Constructor Details

    • ServerPlayerInteractionManager

      public ServerPlayerInteractionManager(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/network/ServerPlayerInteractionManager;<init>(Lnet/minecraft/server/network/ServerPlayerEntity;)V
      intermediary <init> Lnet/minecraft/class_3225;<init>(Lnet/minecraft/class_3222;)V
      official <init> Laqv;<init>(Laqu;)V
  • Method Details

    • changeGameMode

      public boolean changeGameMode(GameMode gameMode)
      Checks if current game mode is different to gameMode, and change it if so.
      Returns:
      whether the current game mode has been changed
      Mappings:
      Namespace Name Mixin selector
      named changeGameMode Lnet/minecraft/server/network/ServerPlayerInteractionManager;changeGameMode(Lnet/minecraft/world/GameMode;)Z
      intermediary method_30118 Lnet/minecraft/class_3225;method_30118(Lnet/minecraft/class_1934;)Z
      official a Laqv;a(Ldcr;)Z
    • setGameMode

      protected void setGameMode(GameMode gameMode, @Nullable @Nullable GameMode previousGameMode)
      Mappings:
      Namespace Name Mixin selector
      named setGameMode Lnet/minecraft/server/network/ServerPlayerInteractionManager;setGameMode(Lnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;)V
      intermediary method_14261 Lnet/minecraft/class_3225;method_14261(Lnet/minecraft/class_1934;Lnet/minecraft/class_1934;)V
      official a Laqv;a(Ldcr;Ldcr;)V
    • getGameMode

      public GameMode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      named getGameMode Lnet/minecraft/server/network/ServerPlayerInteractionManager;getGameMode()Lnet/minecraft/world/GameMode;
      intermediary method_14257 Lnet/minecraft/class_3225;method_14257()Lnet/minecraft/class_1934;
      official b Laqv;b()Ldcr;
    • getPreviousGameMode

      @Nullable public @Nullable GameMode getPreviousGameMode()
      Mappings:
      Namespace Name Mixin selector
      named getPreviousGameMode Lnet/minecraft/server/network/ServerPlayerInteractionManager;getPreviousGameMode()Lnet/minecraft/world/GameMode;
      intermediary method_30119 Lnet/minecraft/class_3225;method_30119()Lnet/minecraft/class_1934;
      official c Laqv;c()Ldcr;
    • isSurvivalLike

      public boolean isSurvivalLike()
      Mappings:
      Namespace Name Mixin selector
      named isSurvivalLike Lnet/minecraft/server/network/ServerPlayerInteractionManager;isSurvivalLike()Z
      intermediary method_14267 Lnet/minecraft/class_3225;method_14267()Z
      official d Laqv;d()Z
    • isCreative

      public boolean isCreative()
      Mappings:
      Namespace Name Mixin selector
      named isCreative Lnet/minecraft/server/network/ServerPlayerInteractionManager;isCreative()Z
      intermediary method_14268 Lnet/minecraft/class_3225;method_14268()Z
      official e Laqv;e()Z
    • update

      public void update()
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/server/network/ServerPlayerInteractionManager;update()V
      intermediary method_14264 Lnet/minecraft/class_3225;method_14264()V
      official a Laqv;a()V
    • continueMining

      private float continueMining(BlockState state, BlockPos pos, int failedStartMiningTime)
      Mappings:
      Namespace Name Mixin selector
      named continueMining Lnet/minecraft/server/network/ServerPlayerInteractionManager;continueMining(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;I)F
      intermediary method_21716 Lnet/minecraft/class_3225;method_21716(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;I)F
      official a Laqv;a(Ldta;Ljd;I)F
    • onBlockBreakingAction

      private void onBlockBreakingAction(BlockPos pos, boolean success, int sequence, String reason)
      Mappings:
      Namespace Name Mixin selector
      named onBlockBreakingAction Lnet/minecraft/server/network/ServerPlayerInteractionManager;onBlockBreakingAction(Lnet/minecraft/util/math/BlockPos;ZILjava/lang/String;)V
      intermediary method_41250 Lnet/minecraft/class_3225;method_41250(Lnet/minecraft/class_2338;ZILjava/lang/String;)V
      official a Laqv;a(Ljd;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 processBlockBreakingAction Lnet/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
      intermediary method_14263 Lnet/minecraft/class_3225;method_14263(Lnet/minecraft/class_2338;Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2350;II)V
      official a Laqv;a(Ljd;Lahl$a;Lji;II)V
    • finishMining

      public void finishMining(BlockPos pos, int sequence, String reason)
      Mappings:
      Namespace Name Mixin selector
      named finishMining Lnet/minecraft/server/network/ServerPlayerInteractionManager;finishMining(Lnet/minecraft/util/math/BlockPos;ILjava/lang/String;)V
      intermediary method_21717 Lnet/minecraft/class_3225;method_21717(Lnet/minecraft/class_2338;ILjava/lang/String;)V
      official a Laqv;a(Ljd;ILjava/lang/String;)V
    • tryBreakBlock

      public boolean tryBreakBlock(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named tryBreakBlock Lnet/minecraft/server/network/ServerPlayerInteractionManager;tryBreakBlock(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_14266 Lnet/minecraft/class_3225;method_14266(Lnet/minecraft/class_2338;)Z
      official a Laqv;a(Ljd;)Z
    • interactItem

      public ActionResult interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      named interactItem Lnet/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_14256 Lnet/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 a Laqv;a(Laqu;Ldcu;Lcuo;Lbqp;)Lbqq;
    • interactBlock

      public ActionResult interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
      Mappings:
      Namespace Name Mixin selector
      named interactBlock Lnet/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_14262 Lnet/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 a Laqv;a(Laqu;Ldcu;Lcuo;Lbqp;Lews;)Lbqq;
    • setWorld

      public void setWorld(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named setWorld Lnet/minecraft/server/network/ServerPlayerInteractionManager;setWorld(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_14259 Lnet/minecraft/class_3225;method_14259(Lnet/minecraft/class_3218;)V
      official a Laqv;a(Laqt;)V