IEntityArrow
Link to ientityarrow
导入相关包
Link to 导入相关包
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.entity.IEntityArrow;
Extending
Link to extending
IEntityArrow implement the following interfaces and are able to call all of their methods/getters/setters as well:
使用方式
Link to 使用方式
ZenGetter | ZenSetter | 类型 |
---|---|---|
ZenGetter shooter | ZenSetter shooter | 类型 IEntity |
ZenGetter damage | ZenSetter damage | 类型 double |
ZenGetter knockbackStrength | ZenSetter knockbackStrength | 类型 int |
ZenGetter isCritical | ZenSetter isCritical | 类型 布尔值 |
ZenGetter pickupStatus | ZenSetter pickupStatus | 类型 字符串[string] |
ZenGetter shake | ZenSetter | 类型 int |
Additional methods
Link to additional-methods
-
void
shoot(IEntity shooter, float pitch, float yaw, float roll, float velocity, float inaccuracy)
-
void
setPickupDisallowed()
-
void
setPickupAllowed()
-
void
setPickupCreative()