public class EntitySelectionContext extends java.lang.Object implements ISelectionContext
Modifier and Type | Field and Description |
---|---|
protected static ISelectionContext |
DUMMY |
private Entity |
entity |
private double |
field_216381_c |
private boolean |
field_227579_b_ |
private Item |
item |
Modifier | Constructor and Description |
---|---|
protected |
EntitySelectionContext(boolean sneaking,
double p_i51181_2_,
Item itemIn) |
protected |
EntitySelectionContext(Entity entityIn)
Deprecated.
|
protected |
EntitySelectionContext(Entity entityIn,
boolean sneaking,
double p_i51181_2_,
Item itemIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
func_216378_a(VoxelShape shape,
BlockPos pos,
boolean p_216378_3_) |
boolean |
func_225581_b_() |
Entity |
getEntity() |
boolean |
hasItem(Item itemIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dummy, forEntity
protected static final ISelectionContext DUMMY
private final boolean field_227579_b_
private final double field_216381_c
private final Item item
@Nullable private final Entity entity
protected EntitySelectionContext(boolean sneaking, double p_i51181_2_, Item itemIn)
protected EntitySelectionContext(@Nullable Entity entityIn, boolean sneaking, double p_i51181_2_, Item itemIn)
@Deprecated protected EntitySelectionContext(Entity entityIn)
public boolean hasItem(Item itemIn)
hasItem
in interface ISelectionContext
public boolean func_225581_b_()
func_225581_b_
in interface ISelectionContext
public boolean func_216378_a(VoxelShape shape, BlockPos pos, boolean p_216378_3_)
func_216378_a
in interface ISelectionContext
@Nullable public Entity getEntity()
getEntity
in interface IForgeSelectionContext