Class ItemPlacementContext

java.lang.Object
net.minecraft.item.ItemUsageContext
net.minecraft.item.ItemPlacementContext
Direct Known Subclasses:
AutomaticItemPlacementContext

public class ItemPlacementContext extends ItemUsageContext
Mappings:
Namespace Name
named net/minecraft/item/ItemPlacementContext
intermediary net/minecraft/class_1750
official cyb
  • Field Details

    • placementPos

      private final BlockPos placementPos
      Mappings:
      Namespace Name Mixin selector
      named placementPos Lnet/minecraft/item/ItemPlacementContext;placementPos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_7903 Lnet/minecraft/class_1750;field_7903:Lnet/minecraft/class_2338;
      official b Lcyb;b:Liz;
    • canReplaceExisting

      protected boolean canReplaceExisting
      Mappings:
      Namespace Name Mixin selector
      named canReplaceExisting Lnet/minecraft/item/ItemPlacementContext;canReplaceExisting:Z
      intermediary field_7904 Lnet/minecraft/class_1750;field_7904:Z
      official a Lcyb;a:Z
  • Constructor Details

    • ItemPlacementContext

      public ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/ItemPlacementContext;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/hit/BlockHitResult;)V
      intermediary <init> Lnet/minecraft/class_1750;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_3965;)V
      official <init> Lcyb;<init>(Lcmy;Lbqu;Lcuq;Levo;)V
    • ItemPlacementContext

      public ItemPlacementContext(ItemUsageContext context)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/ItemPlacementContext;<init>(Lnet/minecraft/item/ItemUsageContext;)V
      intermediary <init> Lnet/minecraft/class_1750;<init>(Lnet/minecraft/class_1838;)V
      official <init> Lcyb;<init>(Lcyd;)V
    • ItemPlacementContext

      protected ItemPlacementContext(World world, @Nullable @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/ItemUsageContext;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/hit/BlockHitResult;)V
      intermediary <init> Lnet/minecraft/class_1838;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_3965;)V
      official <init> Lcyd;<init>(Ldbz;Lcmy;Lbqu;Lcuq;Levo;)V
  • Method Details

    • offset

      public static ItemPlacementContext offset(ItemPlacementContext context, BlockPos pos, Direction side)
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/item/ItemPlacementContext;offset(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemPlacementContext;
      intermediary method_16355 Lnet/minecraft/class_1750;method_16355(Lnet/minecraft/class_1750;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_1750;
      official a Lcyb;a(Lcyb;Liz;Lje;)Lcyb;
    • getBlockPos

      public BlockPos getBlockPos()
      Overrides:
      getBlockPos in class ItemUsageContext
      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()
      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()
      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()
      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;
    • getVerticalPlayerLookDirection

      public Direction getVerticalPlayerLookDirection()
      Mappings:
      Namespace Name Mixin selector
      named getVerticalPlayerLookDirection Lnet/minecraft/item/ItemPlacementContext;getVerticalPlayerLookDirection()Lnet/minecraft/util/math/Direction;
      intermediary method_32760 Lnet/minecraft/class_1750;method_32760()Lnet/minecraft/class_2350;
      official e Lcyb;e()Lje;
    • getPlacementDirections

      public Direction[] getPlacementDirections()
      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;