接口 AbstractCommonScriptingExtension

所有超级接口:
BetterAsyncAPI, CommonScriptingExtension, RangefinderAPI, VanillaCooldownAPI
所有已知子接口:
AbstractGunAnimationStateContextExtension, AbstractGunScriptAPIExtension
所有已知实现类:
MixinGunAnimationStateContext, MixinModernKineticGunScriptAPI

@Internal public interface AbstractCommonScriptingExtension extends CommonScriptingExtension
  • 方法详细资料

    • gunsmithlib$getCurrentItem

      net.minecraft.world.item.ItemStack gunsmithlib$getCurrentItem()
    • gunsmithlib$getGunItemInterface

      com.tacz.guns.api.item.IGun gunsmithlib$getGunItemInterface()
    • gunsmithlib$getShooter

      Optional<net.minecraft.world.entity.LivingEntity> gunsmithlib$getShooter()
    • gunsmithlib$getSide

      net.neoforged.fml.LogicalSide gunsmithlib$getSide()
    • gunsmith$getGunIdHelper

      default String gunsmith$getGunIdHelper()
    • gunsmith_getEstimatedRange

      default double gunsmith_getEstimatedRange()
      从接口复制的说明: RangefinderAPI
      获取这把武器预估的射程。 可用于在状态机中控制激光武器的激光块的长度。
      指定者:
      gunsmith_getEstimatedRange 在接口中 RangefinderAPI
      返回:
      这把武器预估的射程
    • gunsmith_getEstimatedRange

      default double gunsmith_getEstimatedRange(int pierce)
      从接口复制的说明: RangefinderAPI
      获取这把武器在指定穿透数量下预估的射程。 可用于在状态机中控制激光武器的激光块的长度。
      指定者:
      gunsmith_getEstimatedRange 在接口中 RangefinderAPI
      参数:
      pierce - 能穿透多少个敌人,1 = 能穿透一个或击中两个敌人
      返回:
      这把武器在指定穿透数量下预估的射程
    • gunsmith_getChargingTime

      default double gunsmith_getChargingTime()
      从接口复制的说明: CommonScriptingExtension
      获取武器蓄力时间,单位为秒。
      指定者:
      gunsmith_getChargingTime 在接口中 CommonScriptingExtension
    • gunsmith_asyncRunDelayed

      default void gunsmith_asyncRunDelayed(org.luaj.vm2.LuaValue value, int delayTicks)
      从接口复制的说明: BetterAsyncAPI
      在给定的游戏刻延迟后执行 lua 函数。 倒计时结束后如果用户切换别的 id 的武器或者没有持枪时会自动停止执行。
      指定者:
      gunsmith_asyncRunDelayed 在接口中 BetterAsyncAPI
      参数:
      value - lua 函数
      delayTicks - 延迟
    • gunsmith_asyncRunCycled

      default void gunsmith_asyncRunCycled(org.luaj.vm2.LuaValue value, int period, int count)
      从接口复制的说明: BetterAsyncAPI
      以指定的游戏刻间隔循环执行 lua 函数。 执行前如果用户切换别的 id 的武器或者没有持枪时会自动终止循环。

      传入的 lua 函数需要返回一个 bool 值。 如果返回 false 则终止循环。

      指定者:
      gunsmith_asyncRunCycled 在接口中 BetterAsyncAPI
      参数:
      value - lua 函数
      period - 循环周期
      count - 循环次数