java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.CrossbowItem
pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.Crossbow
所有已实现的接口:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature, HoldingFovZoom, HoldingMovementMultiplier, SilkCrossbowExtend, SilkRangedWeaponExtend

@SilkApi public abstract class Crossbow extends net.minecraft.item.CrossbowItem implements SilkCrossbowExtend

辅助弩的创建的数据直观和清晰

从以下版本开始:
0.1.0
  • 嵌套类概要

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

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

    字段
    修饰符和类型
    字段
    说明
    protected boolean
     
    static final float
     
    static final float
     
    protected boolean
     
    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.CrossbowItem

    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.item.tool.weapon.ranged.SilkCrossbowExtend

    CHARGED_KEY, CHARGED_PROJECTILES_KEY, CROSSBOW_MAX_PROJECTILE_SPEED, CROSSBOW_MAX_USE_TICKS

    从接口继承的字段 pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.SilkRangedWeaponExtend

    DEFAULT_FIRING_ERROR, PROJECTILE_ID_KEY, PULL_KEY, PULLING_KEY

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

    FEATURE_ENABLED_REGISTRY_KEYS
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    boolean
    canChangeFov(net.minecraft.item.ItemStack stack)
     
    boolean
    canChangeMovement(net.minecraft.item.ItemStack stack)
     
    protected void
    clearAllProjectile(net.minecraft.item.ItemStack crossbow)
    重实现 CrossbowItem.clearProjectiles(ItemStack)
    protected net.minecraft.entity.projectile.PersistentProjectileEntity
    createArrow(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack arrow)
    重实现 CrossbowItem.createArrow(World, LivingEntity, ItemStack, ItemStack)
    protected List<net.minecraft.item.ItemStack>
    getAllProjectile(net.minecraft.item.ItemStack crossbow)
    重实现 CrossbowItem.getProjectiles(ItemStack)
    int
     
    protected net.minecraft.sound.SoundEvent
    获取装填结束音效
    protected net.minecraft.sound.SoundEvent
    获取装填中音效
    int
    getMaxUseTime(net.minecraft.item.ItemStack stack)
    获取最大使用时间
    protected net.minecraft.sound.SoundEvent
    因私有字段问题
    protected net.minecraft.sound.SoundEvent
    获取弩发射音效
    protected float
    getSoundPitch(boolean flag, net.minecraft.util.math.random.Random random)
    重实现 CrossbowItem.getSoundPitch(boolean, Random)
    protected float[]
    getSoundPitches(net.minecraft.util.math.random.Random random)
    重实现 CrossbowItem.getSoundPitches(Random)
    boolean
     
    protected boolean
    loadAllProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow)
    重实现 CrossbowItem.loadProjectiles(LivingEntity, ItemStack)
    protected boolean
    loadProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, boolean simulated, boolean creative)
    重实现 CrossbowItem.loadProjectile(LivingEntity, ItemStack, ItemStack, boolean, boolean)
    void
    onStoppedUsing(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, int remainingUseTicks)
    重实现 CrossbowItem.onStoppedUsing(ItemStack, World, LivingEntity, int)
    protected void
    postShootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack)
    重实现 CrossbowItem.postShoot(World, LivingEntity, ItemStack)
    protected void
    putProjectile(net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile)
    重实现 CrossbowItem.putProjectile(ItemStack, ItemStack)
    void
    shootAllProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack stack, float speed, float divergence)
    重实现 CrossbowItem.shootAll(World, LivingEntity, Hand, ItemStack, float, float)
    protected void
    shootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)
    设置自定义伤害
    void
    usageTick(net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, net.minecraft.item.ItemStack stack, int remainingUseTicks)
    因私有字段问题
    net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack>
    use(net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity user, net.minecraft.util.Hand hand)
    设置自定义的弹药速度与射击误差

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

    appendTooltip, getHeldProjectiles, getProjectiles, getPullTime, getRange, getUseAction, hasProjectile, isCharged, isUsedOnRelease, setCharged, 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

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

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getFoodComponent, getRecipeRemainder, isSuitableFor

    从接口继承的方法 pers.saikel0rado1iu.silk.api.item.tool.HoldingFovZoom

    getHoldingFovMultiple

    从接口继承的方法 pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.SilkRangedWeaponExtend

    getAllProjectile, getProjectileId, setProjectileId

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

    isEnabled
  • 字段详细资料

    • charged

      protected boolean charged
    • loaded

      protected boolean loaded
    • DEFAULT_MOVEMENT_MULTIPLE

      @SilkApi static final float DEFAULT_MOVEMENT_MULTIPLE
      另请参阅:
    • DEFAULT_FOV_ZOOM

      @SilkApi static final float DEFAULT_FOV_ZOOM
      另请参阅:
    • VIGNETTE_TEXTURE

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

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

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

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

    • Crossbow

      public Crossbow(net.minecraft.item.Item.Settings settings)
  • 方法详细资料

    • createArrow

      protected net.minecraft.entity.projectile.PersistentProjectileEntity createArrow(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack arrow)
      重实现 CrossbowItem.createArrow(World, LivingEntity, ItemStack, ItemStack)
    • getSoundPitches

      protected float[] getSoundPitches(net.minecraft.util.math.random.Random random)
      重实现 CrossbowItem.getSoundPitches(Random)
    • getSoundPitch

      protected float getSoundPitch(boolean flag, net.minecraft.util.math.random.Random random)
      重实现 CrossbowItem.getSoundPitch(boolean, Random)
    • postShootProjectile

      protected void postShootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack)
      重实现 CrossbowItem.postShoot(World, LivingEntity, ItemStack)
    • loadAllProjectile

      protected boolean loadAllProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow)
      重实现 CrossbowItem.loadProjectiles(LivingEntity, ItemStack)
    • loadProjectile

      protected boolean loadProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, boolean simulated, boolean creative)
      重实现 CrossbowItem.loadProjectile(LivingEntity, ItemStack, ItemStack, boolean, boolean)
    • putProjectile

      protected void putProjectile(net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile)
      重实现 CrossbowItem.putProjectile(ItemStack, ItemStack)
    • getAllProjectile

      protected List<net.minecraft.item.ItemStack> getAllProjectile(net.minecraft.item.ItemStack crossbow)
      重实现 CrossbowItem.getProjectiles(ItemStack)
    • clearAllProjectile

      protected void clearAllProjectile(net.minecraft.item.ItemStack crossbow)
      重实现 CrossbowItem.clearProjectiles(ItemStack)
    • isHubStretch

      public boolean isHubStretch()
    • canChangeFov

      public boolean canChangeFov(net.minecraft.item.ItemStack stack)
      指定者:
      canChangeFov 在接口中 HoldingFovZoom
    • canChangeMovement

      public boolean canChangeMovement(net.minecraft.item.ItemStack stack)
      指定者:
      canChangeMovement 在接口中 HoldingMovementMultiplier
    • getEnchantability

      public int getEnchantability()
      覆盖:
      getEnchantability 在类中 net.minecraft.item.RangedWeaponItem
    • shootProjectile

      protected void shootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)

      设置自定义伤害

      重实现 CrossbowItem.shoot(World, LivingEntity, Hand, ItemStack, ItemStack, float, boolean, float, float, float)
    • shootAllProjectile

      public void shootAllProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack stack, float speed, float divergence)
      重实现 CrossbowItem.shootAll(World, LivingEntity, Hand, ItemStack, float, float)
    • onStoppedUsing

      public void onStoppedUsing(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, int remainingUseTicks)
      重实现 CrossbowItem.onStoppedUsing(ItemStack, World, LivingEntity, int)
      覆盖:
      onStoppedUsing 在类中 net.minecraft.item.CrossbowItem
    • use

      public net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity user, net.minecraft.util.Hand hand)

      设置自定义的弹药速度与射击误差

      重实现 CrossbowItem.use(World, PlayerEntity, Hand)
      覆盖:
      use 在类中 net.minecraft.item.CrossbowItem
    • usageTick

      public void usageTick(net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, net.minecraft.item.ItemStack stack, int remainingUseTicks)

      因私有字段问题

      重实现 CrossbowItem.usageTick(World, LivingEntity, ItemStack, int)
      覆盖:
      usageTick 在类中 net.minecraft.item.CrossbowItem
    • getQuickChargeSound

      protected net.minecraft.sound.SoundEvent getQuickChargeSound(int stage)

      因私有字段问题

      重实现 CrossbowItem.getQuickChargeSound(int)
    • getLoadingSound

      protected net.minecraft.sound.SoundEvent getLoadingSound()
      获取装填中音效
    • getLoadingEndSound

      protected net.minecraft.sound.SoundEvent getLoadingEndSound()
      获取装填结束音效
    • getShootSound

      protected net.minecraft.sound.SoundEvent getShootSound()
      获取弩发射音效
    • getMaxUseTime

      public int getMaxUseTime(net.minecraft.item.ItemStack stack)
      获取最大使用时间
      覆盖:
      getMaxUseTime 在类中 net.minecraft.item.CrossbowItem