类 ItemPlacementContext
- java.lang.Object
-
- net.minecraft.item.ItemUsageContext
-
- net.minecraft.item.ItemPlacementContext
-
- 直接已知子类:
AutomaticItemPlacementContext
public class ItemPlacementContext extends ItemUsageContext
- Mappings:
Namespace Name official brrintermediary net/minecraft/class_1750named net/minecraft/item/ItemPlacementContext
-
-
字段概要
字段 修饰符和类型 字段 说明 protected booleancanReplaceExistingprivate BlockPosplacementPos
-
构造器概要
构造器 限定符 构造器 说明 ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)ItemPlacementContext(ItemUsageContext context)protectedItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanPlace()booleancanReplaceExisting()BlockPosgetBlockPos()Direction[]getPlacementDirections()DirectiongetPlayerLookDirection()DirectiongetVerticalPlayerLookDirection()static ItemPlacementContextoffset(ItemPlacementContext context, BlockPos pos, Direction side)-
从类继承的方法 net.minecraft.item.ItemUsageContext
getHand, getHitPos, getHitResult, getPlayer, getPlayerFacing, getPlayerYaw, getSide, getStack, getWorld, hitsInsideBlock, shouldCancelInteraction
-
-
-
-
字段详细资料
-
placementPos
private final BlockPos placementPos
- Mappings:
Namespace Name Mixin selector official bLbrr;b:Lgb;intermediary field_7903Lnet/minecraft/class_1750;field_7903:Lnet/minecraft/class_2338;named placementPosLnet/minecraft/item/ItemPlacementContext;placementPos:Lnet/minecraft/util/math/BlockPos;
-
canReplaceExisting
protected boolean canReplaceExisting
- Mappings:
Namespace Name Mixin selector official aLbrr;a:Zintermediary field_7904Lnet/minecraft/class_1750;field_7904:Znamed canReplaceExistingLnet/minecraft/item/ItemPlacementContext;canReplaceExisting:Z
-
-
构造器详细资料
-
ItemPlacementContext
public ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)
- Mappings:
Namespace Name Mixin selector official <init>Lbrr;<init>(Lbjf;Larf;Lbpr;Ldlw;)Vintermediary <init>Lnet/minecraft/class_1750;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_3965;)Vnamed <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
-
ItemPlacementContext
public ItemPlacementContext(ItemUsageContext context)
- Mappings:
Namespace Name Mixin selector official <init>Lbrr;<init>(Lbrt;)Vintermediary <init>Lnet/minecraft/class_1750;<init>(Lnet/minecraft/class_1838;)Vnamed <init>Lnet/minecraft/item/ItemPlacementContext;<init>(Lnet/minecraft/item/ItemUsageContext;)V
-
ItemPlacementContext
protected ItemPlacementContext(World world, @Nullable @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
- Mappings:
Namespace Name Mixin selector official <init>Lbrt;<init>(Lbvr;Lbjf;Larf;Lbpr;Ldlw;)Vintermediary <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;)Vnamed <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
-
-
方法详细资料
-
offset
public static ItemPlacementContext offset(ItemPlacementContext context, BlockPos pos, Direction side)
- Mappings:
Namespace Name Mixin selector official aLbrr;a(Lbrr;Lgb;Lgg;)Lbrr;intermediary method_16355Lnet/minecraft/class_1750;method_16355(Lnet/minecraft/class_1750;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_1750;named offsetLnet/minecraft/item/ItemPlacementContext;offset(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemPlacementContext;
-
getBlockPos
public BlockPos getBlockPos()
- 覆盖:
getBlockPos在类中ItemUsageContext- Mappings:
Namespace Name Mixin selector official aLbrt;a()Lgb;intermediary method_8037Lnet/minecraft/class_1838;method_8037()Lnet/minecraft/class_2338;named getBlockPosLnet/minecraft/item/ItemUsageContext;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
canPlace
public boolean canPlace()
- Mappings:
Namespace Name Mixin selector official bLbrr;b()Zintermediary method_7716Lnet/minecraft/class_1750;method_7716()Znamed canPlaceLnet/minecraft/item/ItemPlacementContext;canPlace()Z
-
canReplaceExisting
public boolean canReplaceExisting()
- Mappings:
Namespace Name Mixin selector official cLbrr;c()Zintermediary method_7717Lnet/minecraft/class_1750;method_7717()Znamed canReplaceExistingLnet/minecraft/item/ItemPlacementContext;canReplaceExisting()Z
-
getPlayerLookDirection
public Direction getPlayerLookDirection()
- Mappings:
Namespace Name Mixin selector official dLbrr;d()Lgg;intermediary method_7715Lnet/minecraft/class_1750;method_7715()Lnet/minecraft/class_2350;named getPlayerLookDirectionLnet/minecraft/item/ItemPlacementContext;getPlayerLookDirection()Lnet/minecraft/util/math/Direction;
-
getVerticalPlayerLookDirection
public Direction getVerticalPlayerLookDirection()
- Mappings:
Namespace Name Mixin selector official eLbrr;e()Lgg;intermediary method_32760Lnet/minecraft/class_1750;method_32760()Lnet/minecraft/class_2350;named getVerticalPlayerLookDirectionLnet/minecraft/item/ItemPlacementContext;getVerticalPlayerLookDirection()Lnet/minecraft/util/math/Direction;
-
getPlacementDirections
public Direction[] getPlacementDirections()
- Mappings:
Namespace Name Mixin selector official fLbrr;f()[Lgg;intermediary method_7718Lnet/minecraft/class_1750;method_7718()[Lnet/minecraft/class_2350;named getPlacementDirectionsLnet/minecraft/item/ItemPlacementContext;getPlacementDirections()[Lnet/minecraft/util/math/Direction;
-
-