类 CompoundBowItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.BowItem
pers.saikel0rado1iu.silk.api.ropestick.ranged.Bow
pers.saikel0rado1iu.spontaneousreplace.item.CompoundBowItem
所有已实现的接口:
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.ranged.BowExpansion, pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion, pers.saikel0rado1iu.silk.api.ropestick.tool.AdjustFovWhileUse, pers.saikel0rado1iu.silk.api.ropestick.tool.ModifyMoveWhileUse

public class CompoundBowItem extends pers.saikel0rado1iu.silk.api.ropestick.ranged.Bow

复合弓

一种性能极佳的强力远程武器
从以下版本开始:
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
     

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

    RANGE, TICKS_PER_SECOND

    从类继承的字段 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.BowExpansion

    BOW_FOV_SCALING, BOW_MAX_DAMAGE, BOW_MAX_PROJECTILE_SPEED, BOW_MAX_PULL_TICKS, BOW_MAX_USE_TICKS

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

    DEFAULT_FIRING_ERROR, PROJECTILE_INDEX_KEY, PULL_KEY, PULLING_KEY

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

    FEATURE_ENABLED_REGISTRY_KEYS
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    net.minecraft.item.Item
    默认的发射物
    float
     
    default float
     
    float
    getProjectileIndex(net.minecraft.item.Item projectile)
    获取发射物索引以供 JSON 渲染使用
    float
    getProjectileIndex(net.minecraft.item.ItemStack stack)
    获取发射物索引以供 JSON 渲染使用
    int
     
    Optional<net.minecraft.util.Identifier>
     
    Set<net.minecraft.item.Item>
    获取远程武器能发射的所有的发射物
    float
     
    float
     
    int
     
    void
    setProjectileIndex(net.minecraft.item.ItemStack stack, net.minecraft.item.ItemStack useProjectile)
    设置发射物索引以供 JSON 渲染使用
    void
    triggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile)
    触发进度条件

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

    canStretchHud, getMaxUseTime, getProjectiles, onStoppedUsing, use

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

    getPullProgress, getUseAction

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

    getEnchantability, getHeldProjectile, getHeldProjectiles

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

    appendTooltip, 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, isUsedOnRelease, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, postHit, postMine, postProcessNbt, raycast, toString, usageTick, useOnBlock, useOnEntity

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

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

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

    adjustedProjectileDamage, firingError, getUsingProgress, maxUseTicks, moveSpeedMultiple, onlyFirstPerson

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

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, canBeEnchantedWith, getAttributeModifiers, getFoodComponent, getIntrinsicEnchantments, getRecipeRemainder, isSuitableFor

    从接口继承的方法 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
  • 构造器详细资料

    • CompoundBowItem

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

    • triggerCriteria

      public void triggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile)
      触发进度条件
      参数:
      serverPlayer - 服务端玩家
      ranged - 远程武器物品堆栈
      projectile - 发射物
    • setProjectileIndex

      public void setProjectileIndex(net.minecraft.item.ItemStack stack, net.minecraft.item.ItemStack useProjectile)
      设置发射物索引以供 JSON 渲染使用
      参数:
      stack - 物品堆栈
      useProjectile - 使用的发射物
    • getProjectileIndex

      public float getProjectileIndex(net.minecraft.item.ItemStack stack)
      获取发射物索引以供 JSON 渲染使用
      参数:
      stack - 物品堆栈
      返回:
      索引
    • getProjectileIndex

      public float getProjectileIndex(net.minecraft.item.Item projectile)
      获取发射物索引以供 JSON 渲染使用
      参数:
      projectile - 发射物
      返回:
      索引
    • defaultProjectile

      public net.minecraft.item.Item defaultProjectile()
      默认的发射物
      返回:
      发射物物品堆栈
    • launchableProjectiles

      public Set<net.minecraft.item.Item> launchableProjectiles()
      获取远程武器能发射的所有的发射物
      返回:
      发射物集合
    • hudOverlay

      public Optional<net.minecraft.util.Identifier> hudOverlay()
    • maxProjectileSpeed

      public float maxProjectileSpeed()
    • fovScaling

      public float fovScaling()
    • maxDamage

      public float maxDamage()
    • maxPullTicks

      public int maxPullTicks()
    • getRange

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

      default float fovScalingMultiple()