Class AutomaticItemPlacementContext


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

    • facing

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

    • AutomaticItemPlacementContext

      public AutomaticItemPlacementContext(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official <init> Lcyc;<init>(Ldbz;Liz;Lje;Lcuq;Lje;)V
  • Method Details

    • getBlockPos

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

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

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

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

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

      public Direction getHorizontalPlayerFacing()
      Returns the
      invalid reference
      horizontal facing
       direction
      of the player.
      Overrides:
      getHorizontalPlayerFacing in class ItemUsageContext
      Returns:
      the
      invalid reference
      horizontal facing
       direction
      of the player
      Implementation Requirements:
      If the player is null, returns Direction.NORTH.
      Mappings:
      Namespace Name Mixin selector
      named getHorizontalPlayerFacing Lnet/minecraft/item/ItemUsageContext;getHorizontalPlayerFacing()Lnet/minecraft/util/math/Direction;
      intermediary method_8042 Lnet/minecraft/class_1838;method_8042()Lnet/minecraft/class_2350;
      official g Lcyd;g()Lje;
    • shouldCancelInteraction

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

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