Package cn.nukkit.entity.ai.sensor
Class NearestBeggingPlayerSensor
java.lang.Object
cn.nukkit.entity.ai.sensor.NearestBeggingPlayerSensor
- All Implemented Interfaces:
ISensor
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public class NearestBeggingPlayerSensor
extends Object
implements ISensor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNearestBeggingPlayerSensor
(double range, double minRange) NearestBeggingPlayerSensor
(double range, double minRange, int period) -
Method Summary
Modifier and TypeMethodDescriptionint
返回此传感器的刷新周期,小的刷新周期会使得传感器被更频繁的调用void
sense
(EntityIntelligent entity)
-
Field Details
-
range
protected double range -
minRange
protected double minRange -
period
protected int period
-
-
Constructor Details
-
NearestBeggingPlayerSensor
public NearestBeggingPlayerSensor(double range, double minRange) -
NearestBeggingPlayerSensor
public NearestBeggingPlayerSensor(double range, double minRange, int period)
-
-
Method Details