22 lines
415 B
Java
22 lines
415 B
Java
package org.bukkit.entity;
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
public interface ShulkerBullet extends Projectile {
|
|
|
|
/**
|
|
* Retrieve the target of this bullet.
|
|
*
|
|
* @return the targeted entity
|
|
*/
|
|
@Nullable
|
|
Entity getTarget();
|
|
|
|
/**
|
|
* Sets the target of this bullet
|
|
*
|
|
* @param target the entity to target
|
|
*/
|
|
void setTarget(@Nullable Entity target);
|
|
}
|