接口 CommonScriptingExtension
- 所有超级接口:
BetterAsyncAPI,RangefinderAPI,VanillaCooldownAPI
- 所有已知子接口:
AbstractCommonScriptingExtension,AbstractGunAnimationStateContextExtension,AbstractGunScriptAPIExtension,GunAnimationStateContextExtension,GunScriptAPIExtension
public interface CommonScriptingExtension
extends VanillaCooldownAPI, RangefinderAPI, BetterAsyncAPI
双机共享的扩展 API
- 从以下版本开始:
- 4.4.0
-
方法概要
修饰符和类型方法说明double获取武器蓄力时间,单位为秒。获取当前脚本对应的枪械的 id从接口继承的方法 mod.chloeprime.gunsmithlib.api.common.BetterAsyncAPI
gunsmith_asyncRunCycled, gunsmith_asyncRunDelayed从接口继承的方法 mod.chloeprime.gunsmithlib.api.common.RangefinderAPI
gunsmith_getEstimatedRange, gunsmith_getEstimatedRange从接口继承的方法 mod.chloeprime.gunsmithlib.api.common.VanillaCooldownAPI
gunsmith_getCooldownPercent, gunsmith_getCooldownSeconds
-
方法详细资料
-
gunsmith_getGunId
String gunsmith_getGunId()获取当前脚本对应的枪械的 id- 从以下版本开始:
- 4.12.0
-
gunsmith_getChargingTime
double gunsmith_getChargingTime()获取武器蓄力时间,单位为秒。- 从以下版本开始:
- 4.13.0
-