mirror of https://github.com/FabricMC/yarn.git
176 lines
7.6 KiB
Plaintext
176 lines
7.6 KiB
Plaintext
CLASS net/minecraft/class_1890 net/minecraft/enchantment/EnchantmentHelper
|
|
METHOD method_24365 chooseEquipmentWith (Lnet/minecraft/class_1887;Lnet/minecraft/class_1309;Ljava/util/function/Predicate;)Ljava/util/Map$Entry;
|
|
COMMENT {@return a pair of an equipment slot and the item stack in the supplied
|
|
COMMENT entity's slot} It indicates the item stack has the enchantment supplied
|
|
COMMENT and fulfills the extra condition.
|
|
COMMENT
|
|
COMMENT <p>If multiple equipment slots' item stacks are valid, a random pair is
|
|
COMMENT returned.
|
|
ARG 0 enchantment
|
|
COMMENT the enchantment the equipped item stack must have
|
|
ARG 1 entity
|
|
COMMENT the entity to choose equipments from
|
|
ARG 2 condition
|
|
COMMENT extra conditions for the item stack to pass for selection
|
|
METHOD method_24366 (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_25951 hasSoulSpeed (Lnet/minecraft/class_1309;)Z
|
|
ARG 0 entity
|
|
METHOD method_42304 getSwiftSneakSpeedBoost (Lnet/minecraft/class_1309;)F
|
|
ARG 0 entity
|
|
METHOD method_49189 hasSilkTouch (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_57529 canHaveEnchantments (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_57530 set (Lnet/minecraft/class_1799;Lnet/minecraft/class_9304;)V
|
|
ARG 0 stack
|
|
ARG 1 enchantments
|
|
METHOD method_57531 apply (Lnet/minecraft/class_1799;Ljava/util/function/Consumer;)Lnet/minecraft/class_9304;
|
|
ARG 0 stack
|
|
ARG 1 applier
|
|
METHOD method_57532 getEnchantments (Lnet/minecraft/class_1799;)Lnet/minecraft/class_9304;
|
|
ARG 0 stack
|
|
METHOD method_57533 getEnchantmentsComponentType (Lnet/minecraft/class_1799;)Lnet/minecraft/class_9331;
|
|
ARG 0 stack
|
|
METHOD method_58117 hasEnchantments (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_58448 getSweepingMultiplier (I)F
|
|
ARG 0 level
|
|
METHOD method_58676 getBreachFactor (Lnet/minecraft/class_1297;F)F
|
|
ARG 0 entity
|
|
METHOD method_58677 onAttack (Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;Lnet/minecraft/class_9304;)V
|
|
ARG 0 attacker
|
|
ARG 1 target
|
|
ARG 2 enchantments
|
|
METHOD method_8198 (Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;Lnet/minecraft/class_1887;I)V
|
|
ARG 2 enchantment
|
|
ARG 3 level
|
|
METHOD method_8199 getFireAspect (Lnet/minecraft/class_1309;)I
|
|
ARG 0 entity
|
|
METHOD method_8200 hasAquaAffinity (Lnet/minecraft/class_1309;)Z
|
|
ARG 0 entity
|
|
METHOD method_8201 isCompatible (Ljava/util/Collection;Lnet/minecraft/class_1887;)Z
|
|
COMMENT {@return whether the {@code candidate} enchantment is compatible with the
|
|
COMMENT {@code existing} enchantments}
|
|
ARG 0 existing
|
|
ARG 1 candidate
|
|
METHOD method_8202 getRiptide (Lnet/minecraft/class_1799;)I
|
|
ARG 0 stack
|
|
METHOD method_8203 getEquipmentLevel (Lnet/minecraft/class_1887;Lnet/minecraft/class_1309;)I
|
|
COMMENT {@return the highest level of the passed enchantment in the enchantment's
|
|
COMMENT applicable equipment slots' item stacks}
|
|
ARG 0 enchantment
|
|
COMMENT the enchantment
|
|
ARG 1 entity
|
|
COMMENT the entity whose equipment slots are checked
|
|
METHOD method_8204 chooseEquipmentWith (Lnet/minecraft/class_1887;Lnet/minecraft/class_1309;)Ljava/util/Map$Entry;
|
|
COMMENT {@return a pair of an equipment slot and the item stack in the supplied
|
|
COMMENT entity's slot} It indicates the item stack has the enchantment supplied.
|
|
COMMENT
|
|
COMMENT <p>If multiple equipment slots' item stacks are valid, a random pair is
|
|
COMMENT returned.
|
|
ARG 0 enchantment
|
|
COMMENT the enchantment the equipped item stack must have
|
|
ARG 1 entity
|
|
COMMENT the entity to choose equipments from
|
|
METHOD method_8205 getKnockback (Lnet/minecraft/class_1309;)I
|
|
ARG 0 entity
|
|
METHOD method_8206 getLoyalty (Lnet/minecraft/class_1799;)I
|
|
ARG 0 stack
|
|
METHOD method_8207 (Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;Lnet/minecraft/class_1887;I)V
|
|
ARG 2 enchantment
|
|
ARG 3 level
|
|
METHOD method_8208 (Lorg/apache/commons/lang3/mutable/MutableFloat;Lnet/minecraft/class_1299;Lnet/minecraft/class_1887;I)V
|
|
ARG 2 enchantment
|
|
ARG 3 level
|
|
METHOD method_8209 forEachEnchantment (Lnet/minecraft/class_1890$class_1891;Ljava/lang/Iterable;)V
|
|
ARG 0 consumer
|
|
ARG 1 stacks
|
|
METHOD method_8210 onUserDamaged (Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;)V
|
|
ARG 0 user
|
|
ARG 1 attacker
|
|
METHOD method_8211 getRespiration (Lnet/minecraft/class_1309;)I
|
|
ARG 0 entity
|
|
METHOD method_8212 (Lorg/apache/commons/lang3/mutable/MutableInt;Lnet/minecraft/class_1282;Lnet/minecraft/class_1887;I)V
|
|
ARG 2 enchantment
|
|
ARG 3 level
|
|
METHOD method_8213 onTargetDamaged (Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;)V
|
|
ARG 0 user
|
|
ARG 1 target
|
|
METHOD method_8215 getLure (Lnet/minecraft/class_1799;)I
|
|
ARG 0 stack
|
|
METHOD method_8216 hasFrostWalker (Lnet/minecraft/class_1309;)Z
|
|
ARG 0 entity
|
|
METHOD method_8217 getSweepingMultiplier (Lnet/minecraft/class_1309;)F
|
|
ARG 0 entity
|
|
METHOD method_8218 getAttackDamage (Lnet/minecraft/class_1799;Lnet/minecraft/class_1299;)F
|
|
ARG 0 stack
|
|
ARG 1 entityType
|
|
METHOD method_8219 getProtectionAmount (Ljava/lang/Iterable;Lnet/minecraft/class_1282;)I
|
|
ARG 0 equipment
|
|
ARG 1 source
|
|
METHOD method_8220 forEachEnchantment (Lnet/minecraft/class_1890$class_1891;Lnet/minecraft/class_1799;)V
|
|
ARG 0 consumer
|
|
ARG 1 stack
|
|
METHOD method_8221 hasVanishingCurse (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_8223 getLuckOfTheSea (Lnet/minecraft/class_1799;)I
|
|
ARG 0 stack
|
|
METHOD method_8224 hasBindingCurse (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_8225 getLevel (Lnet/minecraft/class_1887;Lnet/minecraft/class_1799;)I
|
|
COMMENT Gets the level of an enchantment on an item stack.
|
|
ARG 0 enchantment
|
|
ARG 1 stack
|
|
METHOD method_8226 getLooting (Lnet/minecraft/class_1309;)I
|
|
ARG 0 entity
|
|
METHOD method_8227 calculateRequiredExperienceLevel (Lnet/minecraft/class_5819;IILnet/minecraft/class_1799;)I
|
|
COMMENT {@return the required experience level for an enchanting option in the
|
|
COMMENT enchanting table's screen, or the enchantment screen}
|
|
ARG 0 random
|
|
COMMENT the random, which guarantees consistent results with the same seed
|
|
ARG 1 slotIndex
|
|
COMMENT the index of the enchanting option
|
|
ARG 2 bookshelfCount
|
|
COMMENT the number of bookshelves
|
|
ARG 3 stack
|
|
COMMENT the item stack to enchant
|
|
METHOD method_8228 hasChanneling (Lnet/minecraft/class_1799;)Z
|
|
ARG 0 stack
|
|
METHOD method_8229 getPossibleEntries (Lnet/minecraft/class_7699;ILnet/minecraft/class_1799;Z)Ljava/util/List;
|
|
COMMENT Gets all the possible entries for enchanting the {@code stack} at the
|
|
COMMENT given {@code power}.
|
|
ARG 0 enabledFeatures
|
|
ARG 1 level
|
|
ARG 2 stack
|
|
ARG 3 treasureAllowed
|
|
METHOD method_8230 generateEnchantments (Lnet/minecraft/class_7699;Lnet/minecraft/class_5819;Lnet/minecraft/class_1799;IZ)Ljava/util/List;
|
|
COMMENT Generate the enchantments for enchanting the {@code stack}.
|
|
ARG 0 enabledFeatures
|
|
ARG 1 random
|
|
ARG 2 stack
|
|
ARG 3 level
|
|
ARG 4 treasureAllowed
|
|
METHOD method_8231 removeConflicts (Ljava/util/List;Lnet/minecraft/class_1889;)V
|
|
COMMENT Remove entries conflicting with the picked entry from the possible
|
|
COMMENT entries.
|
|
ARG 0 possibleEntries
|
|
COMMENT the possible entries
|
|
ARG 1 pickedEntry
|
|
COMMENT the picked entry
|
|
METHOD method_8232 getDepthStrider (Lnet/minecraft/class_1309;)I
|
|
ARG 0 entity
|
|
METHOD method_8233 enchant (Lnet/minecraft/class_7699;Lnet/minecraft/class_5819;Lnet/minecraft/class_1799;IZ)Lnet/minecraft/class_1799;
|
|
COMMENT Enchants the {@code target} item stack and returns it.
|
|
ARG 0 enabledFeatures
|
|
ARG 1 random
|
|
ARG 2 stack
|
|
ARG 3 level
|
|
ARG 4 treasureAllowed
|
|
METHOD method_8234 getEfficiency (Lnet/minecraft/class_1309;)I
|
|
ARG 0 entity
|
|
CLASS class_1891 Consumer
|
|
METHOD accept (Lnet/minecraft/class_1887;I)V
|
|
ARG 1 enchantment
|
|
ARG 2 level
|