public class EntitySelectionContext extends java.lang.Object implements ISelectionContext
| Modifier and Type | Field and Description |
|---|---|
protected static ISelectionContext |
DUMMY |
| 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_) |
Entity |
getEntity() |
boolean |
hasItem(Item itemIn) |
boolean |
isSneaking() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdummy, forEntityprotected static final ISelectionContext DUMMY
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 ISelectionContextpublic boolean isSneaking()
isSneaking in interface ISelectionContextpublic 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