类 ZhugeRepeatingCrossbowItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.CrossbowItem
pers.saikel0rado1iu.silk.api.ropestick.ranged.Crossbow
pers.saikel0rado1iu.silk.api.ropestick.ranged.BoltActionRepeatingFirearm
pers.saikel0rado1iu.spontaneousreplace.item.ZhugeRepeatingCrossbowItem
所有已实现的接口:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.item.ItemConvertible, net.minecraft.item.Vanishable, net.minecraft.resource.featuretoggle.ToggleableFeature, pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperties, pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion, pers.saikel0rado1iu.silk.api.ropestick.ranged.ProjectileContainer, pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion, pers.saikel0rado1iu.silk.api.ropestick.ranged.ShootExpansion, pers.saikel0rado1iu.silk.api.ropestick.tool.AdjustFovWhileHold, pers.saikel0rado1iu.silk.api.ropestick.tool.ModifyMoveWhileHold

public class ZhugeRepeatingCrossbowItem extends pers.saikel0rado1iu.silk.api.ropestick.ranged.BoltActionRepeatingFirearm implements pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperties

诸葛连弩物品

一种强力的近战连发远程物品
从以下版本开始:
1.0.0
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.item.Item

    net.minecraft.item.Item.Settings
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final float
     
    static final float
     
    static final net.minecraft.util.Identifier
     
    static final net.minecraft.util.Identifier
     
    static final net.minecraft.util.Identifier
     
    static final net.minecraft.util.Identifier
     

    从类继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.BoltActionRepeatingFirearm

    loadableAmount, maxUseTicks

    从类继承的字段 net.minecraft.item.CrossbowItem

    charged, CHARGED_PROJECTILES_KEY, loaded, RANGE

    从类继承的字段 net.minecraft.item.RangedWeaponItem

    BOW_PROJECTILES, CROSSBOW_HELD_PROJECTILES

    从类继承的字段 net.minecraft.item.Item

    ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, DEFAULT_MAX_USE_TIME, ITEM_BAR_STEPS

    从接口继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion

    CHARGED_KEY, CROSSBOW_MAX_DAMAGE, CROSSBOW_MAX_PROJECTILE_SPEED, CROSSBOW_MAX_USE_TICKS

    从接口继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion

    DEFAULT_FIRING_ERROR, PROJECTILE_INDEX_KEY, PULL_KEY, PULLING_KEY

    从接口继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.ShootExpansion

    SHOT_KEY

    从接口继承的字段 net.minecraft.resource.featuretoggle.ToggleableFeature

    FEATURE_ENABLED_REGISTRY_KEYS
  • 构造器概要

    构造器
    构造器
    说明
    ZhugeRepeatingCrossbowItem(net.minecraft.item.Item.Settings settings)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.item.Item
    默认的发射物
    float
     
    default float
     
    int
    getMaxUseTime(net.minecraft.item.ItemStack stack)
     
    float
    getProjectileIndex(net.minecraft.item.Item projectile)
    获取发射物索引以供 JSON 渲染使用
    float
    getProjectileIndex(net.minecraft.item.ItemStack stack)
    获取发射物索引以供 JSON 渲染使用
    protected net.minecraft.sound.SoundEvent
     
    int
     
    Set<net.minecraft.item.Item>
    获取远程武器能发射的所有的发射物
    net.minecraft.sound.SoundEvent
     
    net.minecraft.sound.SoundEvent
     
    int
    maxCapacity(net.minecraft.item.ItemStack stack)
    最大发射物容量
    float
     
    float
     
    int
     
    Set<pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperty>
    属性方法
    void
    renderShootingParticle(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter)
    渲染射击时的粒子效果
    void
    setProjectileIndex(net.minecraft.item.ItemStack stack, net.minecraft.item.ItemStack useProjectile)
    设置发射物索引以供 JSON 渲染使用
    int
    设置射击间隔
    net.minecraft.sound.SoundEvent
     
    boolean
    设置已射击状态
    void
    triggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile)
    触发进度条件
    void
    usageTick(net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, net.minecraft.item.ItemStack stack, int remainingUseTicks)
     

    从类继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.BoltActionRepeatingFirearm

    appendTooltip, getUsingProgress, load, load, onStoppedUsing, postShot, shoot, shootProjectile, use

    从类继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.Crossbow

    canAdjustFov, canModifyMove, canStretchHud, getEnchantability, getHeldProjectiles, getProjectiles

    从类继承的方法 net.minecraft.item.CrossbowItem

    clearProjectiles, createArrow, getProjectiles, getPullTime, getSoundPitch, getSoundPitches, getUseAction, hasProjectile, isCharged, isUsedOnRelease, loadProjectile, loadProjectiles, postShoot, putProjectile, setCharged, shoot, shootAll

    从类继承的方法 net.minecraft.item.RangedWeaponItem

    getHeldProjectile

    从类继承的方法 net.minecraft.item.Item

    asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getFoodComponent, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isItemBarVisible, isNbtSynced, isNetworkSynced, isSuitableFor, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, postHit, postMine, postProcessNbt, raycast, toString, useOnBlock, useOnEntity

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion

    adjustedProjectileDamage, fovScaling, getMaxProjectileSpeed, getMaxPullTicks, hudOverlay, isConflictItem, moveSpeedMultiple, onlyFirstPerson

    从接口继承的方法 net.fabricmc.fabric.api.item.v1.FabricItem

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor

    从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.ProjectileContainer

    getLoadableAmount, putChargedProjectiles

    从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion

    getProjectileType

    从接口继承的方法 net.minecraft.resource.featuretoggle.ToggleableFeature

    isEnabled
  • 字段详细资料

    • DEFAULT_SPEED_MULTIPLE

      static final float DEFAULT_SPEED_MULTIPLE
      另请参阅:
    • DEFAULT_FOV_SCALING

      static final float DEFAULT_FOV_SCALING
      另请参阅:
    • VIGNETTE_TEXTURE

      static final net.minecraft.util.Identifier VIGNETTE_TEXTURE
    • PUMPKIN_BLUR

      static final net.minecraft.util.Identifier PUMPKIN_BLUR
    • SPYGLASS_SCOPE

      static final net.minecraft.util.Identifier SPYGLASS_SCOPE
    • POWDER_SNOW_OUTLINE

      static final net.minecraft.util.Identifier POWDER_SNOW_OUTLINE
  • 构造器详细资料

    • ZhugeRepeatingCrossbowItem

      public ZhugeRepeatingCrossbowItem(net.minecraft.item.Item.Settings settings)
      参数:
      settings - 物品设置
  • 方法详细资料

    • usageTick

      public void usageTick(net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, net.minecraft.item.ItemStack stack, int remainingUseTicks)
      覆盖:
      usageTick 在类中 pers.saikel0rado1iu.silk.api.ropestick.ranged.BoltActionRepeatingFirearm
    • properties

      public Set<pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperty> properties()
      属性方法
      指定者:
      properties 在接口中 pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperties
      返回:
      物品属性集合
    • maxCapacity

      public int maxCapacity(net.minecraft.item.ItemStack stack)
      最大发射物容量
      指定者:
      maxCapacity 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.ProjectileContainer
      参数:
      stack - 需获取的物品堆栈
      返回:
      最大发射物容量
    • triggerCriteria

      public void triggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile)
      触发进度条件
      指定者:
      triggerCriteria 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
      参数:
      serverPlayer - 服务端玩家
      ranged - 远程武器物品堆栈
      projectile - 发射物
    • setProjectileIndex

      public void setProjectileIndex(net.minecraft.item.ItemStack stack, net.minecraft.item.ItemStack useProjectile)
      设置发射物索引以供 JSON 渲染使用
      指定者:
      setProjectileIndex 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
      参数:
      stack - 物品堆栈
      useProjectile - 使用的发射物
    • getProjectileIndex

      public float getProjectileIndex(net.minecraft.item.ItemStack stack)
      获取发射物索引以供 JSON 渲染使用
      指定者:
      getProjectileIndex 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
      参数:
      stack - 物品堆栈
      返回:
      索引
    • getProjectileIndex

      public float getProjectileIndex(net.minecraft.item.Item projectile)
      获取发射物索引以供 JSON 渲染使用
      指定者:
      getProjectileIndex 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
      参数:
      projectile - 发射物
      返回:
      索引
    • defaultProjectile

      public net.minecraft.item.Item defaultProjectile()
      默认的发射物
      指定者:
      defaultProjectile 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
      返回:
      发射物物品堆栈
    • launchableProjectiles

      public Set<net.minecraft.item.Item> launchableProjectiles()
      获取远程武器能发射的所有的发射物
      指定者:
      launchableProjectiles 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
      返回:
      发射物集合
    • shotState

      public boolean shotState()
      设置已射击状态
      指定者:
      shotState 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.ShootExpansion
      返回:
      如果为 true 则每个发射物发射后都会设置已发射状态
      如果为 false 则只有当所有发射物都发射后才会设置已发射状态
    • shootingInterval

      public int shootingInterval()
      设置射击间隔
      指定者:
      shootingInterval 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.ShootExpansion
      返回:
      射击间隔,单位为游戏刻
    • renderShootingParticle

      public void renderShootingParticle(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter)
      渲染射击时的粒子效果
      指定者:
      renderShootingParticle 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.ShootExpansion
      参数:
      world - 存档世界
      shooter - 射击者
    • getQuickChargeSound

      protected net.minecraft.sound.SoundEvent getQuickChargeSound(int stage)
      覆盖:
      getQuickChargeSound 在类中 net.minecraft.item.CrossbowItem
    • loadingSound

      public net.minecraft.sound.SoundEvent loadingSound()
      覆盖:
      loadingSound 在类中 pers.saikel0rado1iu.silk.api.ropestick.ranged.Crossbow
    • loadedSound

      public net.minecraft.sound.SoundEvent loadedSound()
      覆盖:
      loadedSound 在类中 pers.saikel0rado1iu.silk.api.ropestick.ranged.Crossbow
    • shootSound

      public net.minecraft.sound.SoundEvent shootSound()
      覆盖:
      shootSound 在类中 pers.saikel0rado1iu.silk.api.ropestick.ranged.Crossbow
    • firingError

      public float firingError()
      指定者:
      firingError 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion
      指定者:
      firingError 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
    • maxProjectileSpeed

      public float maxProjectileSpeed()
      指定者:
      maxProjectileSpeed 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion
      指定者:
      maxProjectileSpeed 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
    • maxDamage

      public float maxDamage()
      指定者:
      maxDamage 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion
      指定者:
      maxDamage 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
    • maxUseTicks

      public int maxUseTicks()
      指定者:
      maxUseTicks 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.CrossbowExpansion
      指定者:
      maxUseTicks 在接口中 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
    • getMaxUseTime

      public int getMaxUseTime(net.minecraft.item.ItemStack stack)
      覆盖:
      getMaxUseTime 在类中 pers.saikel0rado1iu.silk.api.ropestick.ranged.BoltActionRepeatingFirearm
    • getRange

      public int getRange()
      覆盖:
      getRange 在类中 net.minecraft.item.CrossbowItem
    • fovScalingMultiple

      default float fovScalingMultiple()