@Deprecated public class EntityRayBuilder extends AbstractRayBuilder<EntityRayBuilder,EntityRay>
maxDistance, position, vector, w
Constructor and Description |
---|
EntityRayBuilder(Location position,
@Nullable Entity entity)
Deprecated.
Create a new BlockRayBuilder
|
EntityRayBuilder(Location position,
Vector vector)
Deprecated.
Create a new BlockRayBuilder
|
EntityRayBuilder(Player p)
Deprecated.
Create a new BlockRayBuilder
|
Modifier and Type | Method and Description |
---|---|
EntityRay |
build()
Deprecated.
Build BlockRay
Warn: this method have to be runned as sync. |
EntityRayBuilder |
bypassEntities(Entity... entities)
Deprecated.
Add entity that bypass the ray
|
EntityRayBuilder |
onlyPlayers(boolean b)
Deprecated.
Change which entity are selected
|
EntityRayBuilder |
searched(Entity searched)
Deprecated.
Change which entity are selected
|
maxDistance, vector
public EntityRayBuilder(Location position, @Nullable Entity entity)
position
- the started position of rayentity
- which will give the rotation (and so the vector)public EntityRayBuilder(Player p)
p
- the player where the ray startpublic EntityRayBuilder onlyPlayers(boolean b)
b
- true if we are only looking for playerspublic EntityRayBuilder bypassEntities(Entity... entities)
entities
- all entities that should bypass raypublic EntityRayBuilder searched(Entity searched)
b
- true if we are only looking for playerspublic EntityRay build()
build
in class AbstractRayBuilder<EntityRayBuilder,EntityRay>