public class ItemUseContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Hand |
hand |
protected ItemStack |
item |
protected PlayerEntity |
player |
protected BlockRayTraceResult |
rayTraceResult |
protected World |
world |
Modifier | Constructor and Description |
---|---|
|
ItemUseContext(PlayerEntity player,
Hand handIn,
BlockRayTraceResult rayTraceResultIn) |
protected |
ItemUseContext(World worldIn,
PlayerEntity player,
Hand handIn,
ItemStack heldItem,
BlockRayTraceResult rayTraceResultIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
func_225518_g_() |
Direction |
getFace() |
Hand |
getHand() |
Vec3d |
getHitVec() |
ItemStack |
getItem() |
Direction |
getPlacementHorizontalFacing() |
float |
getPlacementYaw() |
PlayerEntity |
getPlayer() |
BlockPos |
getPos() |
World |
getWorld() |
boolean |
isInside() |
protected final PlayerEntity player
protected final Hand hand
protected final BlockRayTraceResult rayTraceResult
protected final World world
protected final ItemStack item
public ItemUseContext(PlayerEntity player, Hand handIn, BlockRayTraceResult rayTraceResultIn)
protected ItemUseContext(World worldIn, @Nullable PlayerEntity player, Hand handIn, ItemStack heldItem, BlockRayTraceResult rayTraceResultIn)
public BlockPos getPos()
public Direction getFace()
public Vec3d getHitVec()
public boolean isInside()
public ItemStack getItem()
@Nullable public PlayerEntity getPlayer()
public Hand getHand()
public World getWorld()
public Direction getPlacementHorizontalFacing()
public boolean func_225518_g_()
public float getPlacementYaw()