Package net.minecraft.advancement
Record Class AdvancementRewards
java.lang.Object
java.lang.Record
net.minecraft.advancement.AdvancementRewards
- Record Components:
experience-loot-recipes-function-
public record AdvancementRewards(int experience, List<RegistryKey<LootTable>> loot, List<Identifier> recipes, Optional<LazyContainer> function)
extends Record
- Mappings:
Namespace Name named net/minecraft/advancement/AdvancementRewardsintermediary net/minecraft/class_170official aknamed experienceintermediary comp_2025official cnamed lootintermediary comp_2026official dnamed recipesintermediary comp_2027official enamed functionintermediary comp_2028official f
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AdvancementRewards> private final intThe field for theexperiencerecord component.private final Optional<LazyContainer> The field for thefunctionrecord component.private final List<RegistryKey<LootTable>> The field for thelootrecord component.static final AdvancementRewardsprivate final List<Identifier> The field for therecipesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementRewards(int experience, List<RegistryKey<LootTable>> list, List<Identifier> list2, Optional<LazyContainer> optional) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerPlayerEntity player) final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexperiencerecord component.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.loot()Returns the value of thelootrecord component.recipes()Returns the value of therecipesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
experience
private final int experienceThe field for theexperiencerecord component. -
loot
The field for thelootrecord component. -
recipes
The field for therecipesrecord component. -
function
The field for thefunctionrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/advancement/AdvancementRewards;CODEC:Lcom/mojang/serialization/Codec;intermediary field_47185Lnet/minecraft/class_170;field_47185:Lcom/mojang/serialization/Codec;official aLak;a:Lcom/mojang/serialization/Codec;
-
NONE
- Mappings:
Namespace Name Mixin selector named NONELnet/minecraft/advancement/AdvancementRewards;NONE:Lnet/minecraft/advancement/AdvancementRewards;intermediary field_1167Lnet/minecraft/class_170;field_1167:Lnet/minecraft/class_170;official bLak;b:Lak;
-
-
Constructor Details
-
AdvancementRewards
public AdvancementRewards(int experience, List<RegistryKey<LootTable>> list, List<Identifier> list2, Optional<LazyContainer> optional) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/advancement/AdvancementRewards;<init>(ILjava/util/List;Ljava/util/List;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_170;<init>(ILjava/util/List;Ljava/util/List;Ljava/util/Optional;)Vofficial <init>Lak;<init>(ILjava/util/List;Ljava/util/List;Ljava/util/Optional;)V
-
-
Method Details
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/advancement/AdvancementRewards;apply(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_748Lnet/minecraft/class_170;method_748(Lnet/minecraft/class_3222;)Vofficial aLak;a(Laqv;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
experience
public int experience()Returns the value of theexperiencerecord component.- Returns:
- the value of the
experiencerecord component
-
loot
Returns the value of thelootrecord component.- Returns:
- the value of the
lootrecord component
-
recipes
Returns the value of therecipesrecord component.- Returns:
- the value of the
recipesrecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-