Package net.minecraft.world.item.context
Class BlockPlaceContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
net.minecraft.world.item.context.BlockPlaceContext
- Direct Known Subclasses:
- DirectionalPlaceContext
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionBlockPlaceContext(Player p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) BlockPlaceContext(UseOnContext p_43636_) BlockPlaceContext(Level p_43638_, Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic BlockPlaceContextat(BlockPlaceContext p_43645_, BlockPos p_43646_, Direction p_43647_) booleancanPlace()booleanMethods inherited from class net.minecraft.world.item.context.UseOnContextgetClickedFace, getClickLocation, getHand, getHitResult, getHorizontalDirection, getItemInHand, getLevel, getPlayer, getRotation, isInside, isSecondaryUseActive
- 
Field Details- 
relativePos
- 
replaceClickedprotected boolean replaceClicked
 
- 
- 
Constructor Details- 
BlockPlaceContextpublic BlockPlaceContext(Player p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) 
- 
BlockPlaceContext
- 
BlockPlaceContextpublic BlockPlaceContext(Level p_43638_, @Nullable Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) 
 
- 
- 
Method Details- 
atpublic static BlockPlaceContext at(BlockPlaceContext p_43645_, BlockPos p_43646_, Direction p_43647_) 
- 
getClickedPos- Overrides:
- getClickedPosin class- UseOnContext
 
- 
canPlacepublic boolean canPlace()
- 
replacingClickedOnBlockpublic boolean replacingClickedOnBlock()
- 
getNearestLookingDirection
- 
getNearestLookingVerticalDirection
- 
getNearestLookingDirections
 
-