Class GameTestHelper.TestBlockPlaceContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
net.minecraft.world.item.context.BlockPlaceContext
net.minecraft.gametest.framework.GameTestHelper.TestBlockPlaceContext
- Enclosing class:
GameTestHelper
-
Field Summary
FieldsFields inherited from class BlockPlaceContext
replaceClicked -
Constructor Summary
ConstructorsConstructorDescriptionTestBlockPlaceContext(Level level, InteractionHand hand, ItemStack itemStackInHand, BlockHitResult hitResult, Direction placeDirection) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class BlockPlaceContext
at, canPlace, getClickedPos, getNearestLookingVerticalDirection, replacingClickedOnBlockMethods inherited from class UseOnContext
getClickedFace, getClickLocation, getHand, getHitResult, getHorizontalDirection, getItemInHand, getLevel, getPlayer, getRotation, isInside, isSecondaryUseActive
-
Field Details
-
placeDirection
-
-
Constructor Details
-
TestBlockPlaceContext
public TestBlockPlaceContext(Level level, InteractionHand hand, ItemStack itemStackInHand, BlockHitResult hitResult, Direction placeDirection)
-
-
Method Details
-
getNearestLookingDirection
- Overrides:
getNearestLookingDirectionin classBlockPlaceContext
-
getNearestLookingDirections
- Overrides:
getNearestLookingDirectionsin classBlockPlaceContext
-