yarn/mappings/net/minecraft/component/type/FoodComponent.mapping

51 lines
2.7 KiB
Plaintext
Raw Normal View History

CLASS net/minecraft/class_4174 net/minecraft/component/type/FoodComponent
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT Represents the components that make up the properties of a food item.
2024-03-20 13:10:31 -04:00
FIELD field_49992 CODEC Lcom/mojang/serialization/Codec;
FIELD field_49993 PACKET_CODEC Lnet/minecraft/class_9139;
FIELD field_49994 DEFAULT_EAT_SECONDS F
2024-04-01 06:22:45 -04:00
METHOD <init> (IFZFLnet/minecraft/class_6880;Ljava/util/List;)V
ARG 1 hunger
ARG 2 saturationModifier
ARG 3 meat
2024-03-20 13:10:31 -04:00
METHOD method_58399 getEatTicks ()I
METHOD method_58400 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
ARG 0 instance
CLASS class_4175 Builder
FIELD field_18620 hunger I
FIELD field_18621 saturationModifier F
FIELD field_18623 alwaysEdible Z
2024-03-20 12:27:30 -04:00
FIELD field_18625 statusEffects Lcom/google/common/collect/ImmutableList$Builder;
2024-03-20 13:10:31 -04:00
FIELD field_49995 eatSeconds F
FIELD field_50492 eatSound Lnet/minecraft/class_6880;
METHOD method_19237 saturationModifier (F)Lnet/minecraft/class_4174$class_4175;
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT Specifies the saturation modifier of a food item.
COMMENT
COMMENT <p>This value is typically used to determine how long a player can sustain the current hunger value before the hunger is used.
ARG 1 saturationModifier
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT the saturation modifier
METHOD method_19238 hunger (I)Lnet/minecraft/class_4174$class_4175;
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT Specifies the amount of hunger a food item will fill.
COMMENT
COMMENT <p>One hunger is equivalent to half of a hunger bar icon.
ARG 1 hunger
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT the amount of hunger
METHOD method_19239 statusEffect (Lnet/minecraft/class_1293;F)Lnet/minecraft/class_4174$class_4175;
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT Specifies a status effect to apply to an entity when a food item is consumed.
COMMENT This method may be called multiple times to apply several status effects when food is consumed.
ARG 1 effect
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT the effect instance to apply
ARG 2 chance
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT the chance the status effect is applied, on a scale of {@code 0.0F} to {@code 1.0F}
METHOD method_19240 alwaysEdible ()Lnet/minecraft/class_4174$class_4175;
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT Specifies that a food item can be eaten when the current hunger bar is full.
METHOD method_19241 snack ()Lnet/minecraft/class_4174$class_4175;
Document FoodComponent and it's builder (#1667) * Document FoodComponent and it's builder * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/FoodComponent.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
2020-08-12 03:20:57 -04:00
COMMENT Specifies that a food item is snack-like and is eaten quickly.
METHOD method_19242 build ()Lnet/minecraft/class_4174;
METHOD method_58946 eatSound (Lnet/minecraft/class_6880;)Lnet/minecraft/class_4174$class_4175;
ARG 1 eatSound
2024-03-20 13:10:31 -04:00
CLASS class_9423 StatusEffectEntry
FIELD field_49996 CODEC Lcom/mojang/serialization/Codec;
FIELD field_49997 PACKET_CODEC Lnet/minecraft/class_9139;
METHOD method_58401 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
ARG 0 instance