类 CrossbowItem

    • 字段详细资料

      • CHARGED_KEY

        private static final String CHARGED_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lboi;b:Ljava/lang/String;
        intermediary field_30864 Lnet/minecraft/class_1764;field_30864:Ljava/lang/String;
        named CHARGED_KEY Lnet/minecraft/item/CrossbowItem;CHARGED_KEY:Ljava/lang/String;
      • CHARGED_PROJECTILES_KEY

        private static final String CHARGED_PROJECTILES_KEY
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lboi;e:Ljava/lang/String;
        intermediary field_30865 Lnet/minecraft/class_1764;field_30865:Ljava/lang/String;
        named CHARGED_PROJECTILES_KEY Lnet/minecraft/item/CrossbowItem;CHARGED_PROJECTILES_KEY:Ljava/lang/String;
      • field_30866

        private static final int field_30866
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official f Lboi;f:I
        intermediary field_30866 Lnet/minecraft/class_1764;field_30866:I
        named field_30866 Lnet/minecraft/item/CrossbowItem;field_30866:I
      • RANGE

        public static final int RANGE
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a:I
        intermediary field_30863 Lnet/minecraft/class_1764;field_30863:I
        named RANGE Lnet/minecraft/item/CrossbowItem;RANGE:I
      • field_30867

        private static final float field_30867
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official i Lboi;i:F
        intermediary field_30867 Lnet/minecraft/class_1764;field_30867:F
        named field_30867 Lnet/minecraft/item/CrossbowItem;field_30867:F
      • field_30868

        private static final float field_30868
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official j Lboi;j:F
        intermediary field_30868 Lnet/minecraft/class_1764;field_30868:F
        named field_30868 Lnet/minecraft/item/CrossbowItem;field_30868:F
      • field_30869

        private static final float field_30869
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official r Lboi;r:F
        intermediary field_30869 Lnet/minecraft/class_1764;field_30869:F
        named field_30869 Lnet/minecraft/item/CrossbowItem;field_30869:F
      • field_30870

        private static final float field_30870
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official s Lboi;s:F
        intermediary field_30870 Lnet/minecraft/class_1764;field_30870:F
        named field_30870 Lnet/minecraft/item/CrossbowItem;field_30870:F
      • charged

        private boolean charged
        Mappings:
        Namespace Name Mixin selector
        official g Lboi;g:Z
        intermediary field_7937 Lnet/minecraft/class_1764;field_7937:Z
        named charged Lnet/minecraft/item/CrossbowItem;charged:Z
      • loaded

        private boolean loaded
        Mappings:
        Namespace Name Mixin selector
        official h Lboi;h:Z
        intermediary field_7936 Lnet/minecraft/class_1764;field_7936:Z
        named loaded Lnet/minecraft/item/CrossbowItem;loaded:Z
    • 构造器详细资料

      • CrossbowItem

        public CrossbowItem​(Item.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbpn;<init>(Lbpn$a;)V
        intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
        named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
    • 方法详细资料

      • getHeldProjectiles

        public Predicate<ItemStack> getHeldProjectiles()
        覆盖:
        getHeldProjectiles 在类中 RangedWeaponItem
        Mappings:
        Namespace Name Mixin selector
        official e Lbqf;e()Ljava/util/function/Predicate;
        intermediary method_20310 Lnet/minecraft/class_1811;method_20310()Ljava/util/function/Predicate;
        named getHeldProjectiles Lnet/minecraft/item/RangedWeaponItem;getHeldProjectiles()Ljava/util/function/Predicate;
      • getProjectiles

        public Predicate<ItemStack> getProjectiles()
        指定者:
        getProjectiles 在类中 RangedWeaponItem
        Mappings:
        Namespace Name Mixin selector
        official b Lbqf;b()Ljava/util/function/Predicate;
        intermediary method_19268 Lnet/minecraft/class_1811;method_19268()Ljava/util/function/Predicate;
        named getProjectiles Lnet/minecraft/item/RangedWeaponItem;getProjectiles()Ljava/util/function/Predicate;
      • use

        public TypedActionResult<ItemStack> use​(World world,
                                                PlayerEntity user,
                                                Hand hand)
        Called when an item is used by a player. The use action, by default, is bound to the right mouse button.

        This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().

        覆盖:
        use 在类中 Item
        参数:
        world - the world the item was used in
        user - the player who used the item
        hand - the hand used
        返回:
        a typed action result that specifies whether using the item was successful. The action result contains the new item stack that the player's hand will be set to.
        Mappings:
        Namespace Name Mixin selector
        official a Lbpn;a(Lbvr;Lbjf;Larf;)Larh;
        intermediary method_7836 Lnet/minecraft/class_1792;method_7836(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
        named use Lnet/minecraft/item/Item;use(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
      • getSpeed

        private static float getSpeed​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official o Lboi;o(Lbpr;)F
        intermediary method_20309 Lnet/minecraft/class_1764;method_20309(Lnet/minecraft/class_1799;)F
        named getSpeed Lnet/minecraft/item/CrossbowItem;getSpeed(Lnet/minecraft/item/ItemStack;)F
      • onStoppedUsing

        public void onStoppedUsing​(ItemStack stack,
                                   World world,
                                   LivingEntity user,
                                   int remainingUseTicks)
        覆盖:
        onStoppedUsing 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official a Lbpn;a(Lbpr;Lbvr;Lasy;I)V
        intermediary method_7840 Lnet/minecraft/class_1792;method_7840(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)V
        named onStoppedUsing Lnet/minecraft/item/Item;onStoppedUsing(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
      • loadProjectiles

        private static boolean loadProjectiles​(LivingEntity shooter,
                                               ItemStack projectile)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lasy;Lbpr;)Z
        intermediary method_7767 Lnet/minecraft/class_1764;method_7767(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Z
        named loadProjectiles Lnet/minecraft/item/CrossbowItem;loadProjectiles(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)Z
      • loadProjectile

        private static boolean loadProjectile​(LivingEntity shooter,
                                              ItemStack crossbow,
                                              ItemStack projectile,
                                              boolean simulated,
                                              boolean creative)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lasy;Lbpr;Lbpr;ZZ)Z
        intermediary method_7765 Lnet/minecraft/class_1764;method_7765(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;ZZ)Z
        named loadProjectile Lnet/minecraft/item/CrossbowItem;loadProjectile(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;ZZ)Z
      • isCharged

        public static boolean isCharged​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official d Lboi;d(Lbpr;)Z
        intermediary method_7781 Lnet/minecraft/class_1764;method_7781(Lnet/minecraft/class_1799;)Z
        named isCharged Lnet/minecraft/item/CrossbowItem;isCharged(Lnet/minecraft/item/ItemStack;)Z
      • setCharged

        public static void setCharged​(ItemStack stack,
                                      boolean charged)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lbpr;Z)V
        intermediary method_7782 Lnet/minecraft/class_1764;method_7782(Lnet/minecraft/class_1799;Z)V
        named setCharged Lnet/minecraft/item/CrossbowItem;setCharged(Lnet/minecraft/item/ItemStack;Z)V
      • putProjectile

        private static void putProjectile​(ItemStack crossbow,
                                          ItemStack projectile)
        Mappings:
        Namespace Name Mixin selector
        official b Lboi;b(Lbpr;Lbpr;)V
        intermediary method_7778 Lnet/minecraft/class_1764;method_7778(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
        named putProjectile Lnet/minecraft/item/CrossbowItem;putProjectile(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
      • getProjectiles

        private static List<ItemStack> getProjectiles​(ItemStack crossbow)
        Mappings:
        Namespace Name Mixin selector
        official p Lboi;p(Lbpr;)Ljava/util/List;
        intermediary method_7785 Lnet/minecraft/class_1764;method_7785(Lnet/minecraft/class_1799;)Ljava/util/List;
        named getProjectiles Lnet/minecraft/item/CrossbowItem;getProjectiles(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
      • clearProjectiles

        private static void clearProjectiles​(ItemStack crossbow)
        Mappings:
        Namespace Name Mixin selector
        official q Lboi;q(Lbpr;)V
        intermediary method_7766 Lnet/minecraft/class_1764;method_7766(Lnet/minecraft/class_1799;)V
        named clearProjectiles Lnet/minecraft/item/CrossbowItem;clearProjectiles(Lnet/minecraft/item/ItemStack;)V
      • hasProjectile

        public static boolean hasProjectile​(ItemStack crossbow,
                                            Item projectile)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lbpr;Lbpn;)Z
        intermediary method_7772 Lnet/minecraft/class_1764;method_7772(Lnet/minecraft/class_1799;Lnet/minecraft/class_1792;)Z
        named hasProjectile Lnet/minecraft/item/CrossbowItem;hasProjectile(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/Item;)Z
      • shoot

        private static void shoot​(World world,
                                  LivingEntity shooter,
                                  Hand hand,
                                  ItemStack crossbow,
                                  ItemStack projectile,
                                  float soundPitch,
                                  boolean creative,
                                  float speed,
                                  float divergence,
                                  float simulated)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lbvr;Lasy;Larf;Lbpr;Lbpr;FZFFF)V
        intermediary method_7763 Lnet/minecraft/class_1764;method_7763(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;FZFFF)V
        named shoot Lnet/minecraft/item/CrossbowItem;shoot(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;FZFFF)V
      • createArrow

        private static PersistentProjectileEntity createArrow​(World world,
                                                              LivingEntity entity,
                                                              ItemStack crossbow,
                                                              ItemStack arrow)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lbvr;Lasy;Lbpr;Lbpr;)Lbjj;
        intermediary method_18814 Lnet/minecraft/class_1764;method_18814(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1665;
        named createArrow Lnet/minecraft/item/CrossbowItem;createArrow(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;
      • shootAll

        public static void shootAll​(World world,
                                    LivingEntity entity,
                                    Hand hand,
                                    ItemStack stack,
                                    float speed,
                                    float divergence)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lbvr;Lasy;Larf;Lbpr;FF)V
        intermediary method_7777 Lnet/minecraft/class_1764;method_7777(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;FF)V
        named shootAll Lnet/minecraft/item/CrossbowItem;shootAll(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;FF)V
      • getSoundPitches

        private static float[] getSoundPitches​(Random random)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Ljava/util/Random;)[F
        intermediary method_7780 Lnet/minecraft/class_1764;method_7780(Ljava/util/Random;)[F
        named getSoundPitches Lnet/minecraft/item/CrossbowItem;getSoundPitches(Ljava/util/Random;)[F
      • getSoundPitch

        private static float getSoundPitch​(boolean flag,
                                           Random random)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(ZLjava/util/Random;)F
        intermediary method_7784 Lnet/minecraft/class_1764;method_7784(ZLjava/util/Random;)F
        named getSoundPitch Lnet/minecraft/item/CrossbowItem;getSoundPitch(ZLjava/util/Random;)F
      • postShoot

        private static void postShoot​(World world,
                                      LivingEntity entity,
                                      ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(Lbvr;Lasy;Lbpr;)V
        intermediary method_7769 Lnet/minecraft/class_1764;method_7769(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
        named postShoot Lnet/minecraft/item/CrossbowItem;postShoot(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
      • usageTick

        public void usageTick​(World world,
                              LivingEntity user,
                              ItemStack stack,
                              int remainingUseTicks)
        覆盖:
        usageTick 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official a Lbpn;a(Lbvr;Lasy;Lbpr;I)V
        intermediary method_7852 Lnet/minecraft/class_1792;method_7852(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;I)V
        named usageTick Lnet/minecraft/item/Item;usageTick(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;I)V
      • getMaxUseTime

        public int getMaxUseTime​(ItemStack stack)
        覆盖:
        getMaxUseTime 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official e_ Lbpn;e_(Lbpr;)I
        intermediary method_7881 Lnet/minecraft/class_1792;method_7881(Lnet/minecraft/class_1799;)I
        named getMaxUseTime Lnet/minecraft/item/Item;getMaxUseTime(Lnet/minecraft/item/ItemStack;)I
      • getPullTime

        public static int getPullTime​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official k Lboi;k(Lbpr;)I
        intermediary method_7775 Lnet/minecraft/class_1764;method_7775(Lnet/minecraft/class_1799;)I
        named getPullTime Lnet/minecraft/item/CrossbowItem;getPullTime(Lnet/minecraft/item/ItemStack;)I
      • getUseAction

        public UseAction getUseAction​(ItemStack stack)
        覆盖:
        getUseAction 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official d_ Lbpn;d_(Lbpr;)Lbrg;
        intermediary method_7853 Lnet/minecraft/class_1792;method_7853(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1839;
        named getUseAction Lnet/minecraft/item/Item;getUseAction(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/UseAction;
      • getQuickChargeSound

        private SoundEvent getQuickChargeSound​(int stage)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(I)Laev;
        intermediary method_7773 Lnet/minecraft/class_1764;method_7773(I)Lnet/minecraft/class_3414;
        named getQuickChargeSound Lnet/minecraft/item/CrossbowItem;getQuickChargeSound(I)Lnet/minecraft/sound/SoundEvent;
      • getPullProgress

        private static float getPullProgress​(int useTicks,
                                             ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official a Lboi;a(ILbpr;)F
        intermediary method_7770 Lnet/minecraft/class_1764;method_7770(ILnet/minecraft/class_1799;)F
        named getPullProgress Lnet/minecraft/item/CrossbowItem;getPullProgress(ILnet/minecraft/item/ItemStack;)F
      • appendTooltip

        public void appendTooltip​(ItemStack stack,
                                  @Nullable
                                  @Nullable World world,
                                  List<Text> tooltip,
                                  TooltipContext context)
        覆盖:
        appendTooltip 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official a Lbpn;a(Lbpr;Lbvr;Ljava/util/List;Lbre;)V
        intermediary method_7851 Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)V
        named appendTooltip Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
      • isUsedOnRelease

        public boolean isUsedOnRelease​(ItemStack stack)
        覆盖:
        isUsedOnRelease 在类中 Item
        Mappings:
        Namespace Name Mixin selector
        official l Lbpn;l(Lbpr;)Z
        intermediary method_7838 Lnet/minecraft/class_1792;method_7838(Lnet/minecraft/class_1799;)Z
        named isUsedOnRelease Lnet/minecraft/item/Item;isUsedOnRelease(Lnet/minecraft/item/ItemStack;)Z
      • getRange

        public int getRange()
        指定者:
        getRange 在类中 RangedWeaponItem
        Mappings:
        Namespace Name Mixin selector
        official d Lbqf;d()I
        intermediary method_24792 Lnet/minecraft/class_1811;method_24792()I
        named getRange Lnet/minecraft/item/RangedWeaponItem;getRange()I