类 ServerPlayerInteractionManager

  • 直接已知子类:
    DemoServerPlayerInteractionManager

    public class ServerPlayerInteractionManager
    extends Object
    Mappings:
    Namespace Name
    official abl
    intermediary net/minecraft/class_3225
    named net/minecraft/server/network/ServerPlayerInteractionManager
    • 字段详细资料

      • LOGGER

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

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

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

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

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

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

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

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

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

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

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

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

        private int blockBreakingProgress
        Mappings:
        Namespace Name Mixin selector
        official m Labl;m:I
        intermediary field_20331 Lnet/minecraft/class_3225;field_20331:I
        named blockBreakingProgress Lnet/minecraft/server/network/ServerPlayerInteractionManager;blockBreakingProgress:I
    • 构造器详细资料

      • ServerPlayerInteractionManager

        public ServerPlayerInteractionManager​(ServerPlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official <init> Labl;<init>(Labk;)V
        intermediary <init> Lnet/minecraft/class_3225;<init>(Lnet/minecraft/class_3222;)V
        named <init> Lnet/minecraft/server/network/ServerPlayerInteractionManager;<init>(Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • 方法详细资料

      • changeGameMode

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

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

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

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

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

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

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

        private float continueMining​(BlockState state,
                                     BlockPos pos,
                                     int int2)
        Mappings:
        Namespace Name Mixin selector
        official a Labl;a(Lcjr;Lgb;I)F
        intermediary method_21716 Lnet/minecraft/class_3225;method_21716(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;I)F
        named continueMining Lnet/minecraft/server/network/ServerPlayerInteractionManager;continueMining(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;I)F
      • processBlockBreakingAction

        public void processBlockBreakingAction​(BlockPos pos,
                                               PlayerActionC2SPacket.Action action,
                                               Direction direction,
                                               int worldHeight)
        Mappings:
        Namespace Name Mixin selector
        official a Labl;a(Lgb;Luf$a;Lgg;I)V
        intermediary method_14263 Lnet/minecraft/class_3225;method_14263(Lnet/minecraft/class_2338;Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2350;I)V
        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;I)V
      • finishMining

        public void finishMining​(BlockPos pos,
                                 PlayerActionC2SPacket.Action action,
                                 String reason)
        Mappings:
        Namespace Name Mixin selector
        official a Labl;a(Lgb;Luf$a;Ljava/lang/String;)V
        intermediary method_21717 Lnet/minecraft/class_3225;method_21717(Lnet/minecraft/class_2338;Lnet/minecraft/class_2846$class_2847;Ljava/lang/String;)V
        named finishMining Lnet/minecraft/server/network/ServerPlayerInteractionManager;finishMining(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;Ljava/lang/String;)V
      • tryBreakBlock

        public boolean tryBreakBlock​(BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Labl;a(Lgb;)Z
        intermediary method_14266 Lnet/minecraft/class_3225;method_14266(Lnet/minecraft/class_2338;)Z
        named tryBreakBlock Lnet/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 a Labl;a(Labk;Lbvr;Lbpr;Larf;)Larg;
        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;
        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;
      • interactBlock

        public ActionResult interactBlock​(ServerPlayerEntity player,
                                          World world,
                                          ItemStack stack,
                                          Hand hand,
                                          BlockHitResult hitResult)
        Mappings:
        Namespace Name Mixin selector
        official a Labl;a(Labk;Lbvr;Lbpr;Larf;Ldlw;)Larg;
        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;
        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;
      • setWorld

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