Class AutomaticItemPlacementContext


public class AutomaticItemPlacementContext extends ItemPlacementContext
Mappings:
Namespace Name
official bvy
intermediary net/minecraft/class_2968
named net/minecraft/item/AutomaticItemPlacementContext
  • Field Details

    • facing

      private final Direction facing
      Mappings:
      Namespace Name Mixin selector
      official b Lbvy;b:Lgm;
      intermediary field_13362 Lnet/minecraft/class_2968;field_13362:Lnet/minecraft/class_2350;
      named facing Lnet/minecraft/item/AutomaticItemPlacementContext;facing:Lnet/minecraft/util/math/Direction;
  • Constructor Details

    • AutomaticItemPlacementContext

      public AutomaticItemPlacementContext(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbvy;<init>(Lbzw;Lgh;Lgm;Lbtx;Lgm;)V
      intermediary <init> Lnet/minecraft/class_2968;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_1799;Lnet/minecraft/class_2350;)V
      named <init> Lnet/minecraft/item/AutomaticItemPlacementContext;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)V
  • Method Details

    • getBlockPos

      public BlockPos getBlockPos()
      Overrides:
      getBlockPos in class ItemPlacementContext
      Mappings:
      Namespace Name Mixin selector
      official a Lbvz;a()Lgh;
      intermediary method_8037 Lnet/minecraft/class_1838;method_8037()Lnet/minecraft/class_2338;
      named getBlockPos Lnet/minecraft/item/ItemUsageContext;getBlockPos()Lnet/minecraft/util/math/BlockPos;
    • canPlace

      public boolean canPlace()
      Overrides:
      canPlace in class ItemPlacementContext
      Mappings:
      Namespace Name Mixin selector
      official b Lbvx;b()Z
      intermediary method_7716 Lnet/minecraft/class_1750;method_7716()Z
      named canPlace Lnet/minecraft/item/ItemPlacementContext;canPlace()Z
    • canReplaceExisting

      public boolean canReplaceExisting()
      Overrides:
      canReplaceExisting in class ItemPlacementContext
      Mappings:
      Namespace Name Mixin selector
      official c Lbvx;c()Z
      intermediary method_7717 Lnet/minecraft/class_1750;method_7717()Z
      named canReplaceExisting Lnet/minecraft/item/ItemPlacementContext;canReplaceExisting()Z
    • getPlayerLookDirection

      public Direction getPlayerLookDirection()
      Overrides:
      getPlayerLookDirection in class ItemPlacementContext
      Mappings:
      Namespace Name Mixin selector
      official d Lbvx;d()Lgm;
      intermediary method_7715 Lnet/minecraft/class_1750;method_7715()Lnet/minecraft/class_2350;
      named getPlayerLookDirection Lnet/minecraft/item/ItemPlacementContext;getPlayerLookDirection()Lnet/minecraft/util/math/Direction;
    • getPlacementDirections

      public Direction[] getPlacementDirections()
      Overrides:
      getPlacementDirections in class ItemPlacementContext
      Mappings:
      Namespace Name Mixin selector
      official f Lbvx;f()[Lgm;
      intermediary method_7718 Lnet/minecraft/class_1750;method_7718()[Lnet/minecraft/class_2350;
      named getPlacementDirections Lnet/minecraft/item/ItemPlacementContext;getPlacementDirections()[Lnet/minecraft/util/math/Direction;
    • getPlayerFacing

      public Direction getPlayerFacing()
      Overrides:
      getPlayerFacing in class ItemUsageContext
      Mappings:
      Namespace Name Mixin selector
      official g Lbvz;g()Lgm;
      intermediary method_8042 Lnet/minecraft/class_1838;method_8042()Lnet/minecraft/class_2350;
      named getPlayerFacing Lnet/minecraft/item/ItemUsageContext;getPlayerFacing()Lnet/minecraft/util/math/Direction;
    • shouldCancelInteraction

      public boolean shouldCancelInteraction()
      Overrides:
      shouldCancelInteraction in class ItemUsageContext
      Mappings:
      Namespace Name Mixin selector
      official h Lbvz;h()Z
      intermediary method_8046 Lnet/minecraft/class_1838;method_8046()Z
      named shouldCancelInteraction Lnet/minecraft/item/ItemUsageContext;shouldCancelInteraction()Z
    • getPlayerYaw

      public float getPlayerYaw()
      Overrides:
      getPlayerYaw in class ItemUsageContext
      Mappings:
      Namespace Name Mixin selector
      official i Lbvz;i()F
      intermediary method_8044 Lnet/minecraft/class_1838;method_8044()F
      named getPlayerYaw Lnet/minecraft/item/ItemUsageContext;getPlayerYaw()F