Package net.minecraft
Record Class class_10976
java.lang.Object
java.lang.Record
net.minecraft.class_10976
- Record Components:
key-parent-disables-display-activation-onMineEnter-madeVisibleBy-defaultVisibility-experienceFactorForItemTag-experienceFactorForItem-unlockPrice-exclusiveKey-
public record class_10976(String key, Optional<RegistryEntry<class_10976>> parent, List<RegistryEntry<class_10976>> disables, AdvancementDisplay display, Consumer<ServerPlayerEntity> activation, Consumer<ServerPlayerEntity> onMineEnter, List<class_11057> madeVisibleBy, class_10976.class_10978 defaultVisibility, Map<TagKey<Item>,Float> experienceFactorForItemTag, Map<Item,Float> experienceFactorForItem, int unlockPrice, String exclusiveKey)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10976intermediary net/minecraft/class_10976official awynamed keyintermediary comp_3912official bnamed parentintermediary comp_3913official cnamed disablesintermediary comp_3914official dnamed displayintermediary comp_3915official enamed activationintermediary comp_3916official fnamed onMineEnterintermediary comp_3917official gnamed madeVisibleByintermediary comp_3918official hnamed defaultVisibilityintermediary comp_3919official inamed experienceFactorForItemTagintermediary comp_3920official jnamed experienceFactorForItemintermediary comp_3921official knamed unlockPriceintermediary comp_3922official lnamed exclusiveKeyintermediary comp_3923official m
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer<ServerPlayerEntity> The field for theactivationrecord component.private final class_10976.class_10978The field for thedefaultVisibilityrecord component.private final List<RegistryEntry<class_10976>> The field for thedisablesrecord component.private final AdvancementDisplayThe field for thedisplayrecord component.private final StringThe field for theexclusiveKeyrecord component.The field for theexperienceFactorForItemrecord component.The field for theexperienceFactorForItemTagrecord component.static final com.mojang.serialization.Codec<RegistryEntry<class_10976>> private final StringThe field for thekeyrecord component.private final List<class_11057> The field for themadeVisibleByrecord component.private final Consumer<ServerPlayerEntity> The field for theonMineEnterrecord component.private final Optional<RegistryEntry<class_10976>> The field for theparentrecord component.private final intThe field for theunlockPricerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10976(String string, Optional<RegistryEntry<class_10976>> optional, List<RegistryEntry<class_10976>> list, AdvancementDisplay advancementDisplay, Consumer<ServerPlayerEntity> consumer, Consumer<ServerPlayerEntity> consumer2, List<class_11057> list2, class_10976.class_10978 class_10978, Map<TagKey<Item>, Float> map, Map<Item, Float> map2, int int2, String string2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivationrecord component.Returns the value of thedefaultVisibilityrecord component.disables()Returns the value of thedisablesrecord component.display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexclusiveKeyrecord component.Returns the value of theexperienceFactorForItemrecord component.Returns the value of theexperienceFactorForItemTagrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of themadeVisibleByrecord component.static class_10976.class_10977method_69188(String string) static class_10976.class_10977method_69189(String string, RegistryEntry<class_10976> registryEntry) static RegistryEntry<class_10976> method_69190(RegistryEntry<class_10976> registryEntry) Returns the value of theonMineEnterrecord component.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunlockPricerecord component.
-
Field Details
-
key
The field for thekeyrecord component. -
parent
The field for theparentrecord component. -
disables
The field for thedisablesrecord component. -
display
The field for thedisplayrecord component. -
activation
The field for theactivationrecord component. -
onMineEnter
The field for theonMineEnterrecord component. -
madeVisibleBy
The field for themadeVisibleByrecord component. -
defaultVisibility
The field for thedefaultVisibilityrecord component. -
experienceFactorForItemTag
The field for theexperienceFactorForItemTagrecord component. -
experienceFactorForItem
The field for theexperienceFactorForItemrecord component. -
unlockPrice
private final int unlockPriceThe field for theunlockPricerecord component. -
exclusiveKey
The field for theexclusiveKeyrecord component. -
field_58340
- Mappings:
Namespace Name Mixin selector named field_58340Lnet/minecraft/class_10976;field_58340:Lcom/mojang/serialization/Codec;intermediary field_58340Lnet/minecraft/class_10976;field_58340:Lcom/mojang/serialization/Codec;official aLawy;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_10976
public class_10976(String string, Optional<RegistryEntry<class_10976>> optional, List<RegistryEntry<class_10976>> list, AdvancementDisplay advancementDisplay, Consumer<ServerPlayerEntity> consumer, Consumer<ServerPlayerEntity> consumer2, List<class_11057> list2, class_10976.class_10978 class_10978, Map<TagKey<Item>, Float> map, Map<Item, Float> map2, int int2, String string2)
-
-
Method Details
-
method_69188
- Mappings:
Namespace Name Mixin selector named method_69188Lnet/minecraft/class_10976;method_69188(Ljava/lang/String;)Lnet/minecraft/class_10976$class_10977;intermediary method_69188Lnet/minecraft/class_10976;method_69188(Ljava/lang/String;)Lnet/minecraft/class_10976$class_10977;official aLawy;a(Ljava/lang/String;)Lawy$a;
-
method_69189
public static class_10976.class_10977 method_69189(String string, RegistryEntry<class_10976> registryEntry) - Mappings:
Namespace Name Mixin selector named method_69189Lnet/minecraft/class_10976;method_69189(Ljava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/class_10976$class_10977;intermediary method_69189Lnet/minecraft/class_10976;method_69189(Ljava/lang/String;Lnet/minecraft/class_6880;)Lnet/minecraft/class_10976$class_10977;official aLawy;a(Ljava/lang/String;Ljh;)Lawy$a;
-
method_69190
- Mappings:
Namespace Name Mixin selector named method_69190Lnet/minecraft/class_10976;method_69190(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_69190Lnet/minecraft/class_10976;method_69190(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;official aLawy;a(Ljh;)Ljh;
-
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
disables
Returns the value of thedisablesrecord component.- Returns:
- the value of the
disablesrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
activation
Returns the value of theactivationrecord component.- Returns:
- the value of the
activationrecord component
-
onMineEnter
Returns the value of theonMineEnterrecord component.- Returns:
- the value of the
onMineEnterrecord component
-
madeVisibleBy
Returns the value of themadeVisibleByrecord component.- Returns:
- the value of the
madeVisibleByrecord component
-
defaultVisibility
Returns the value of thedefaultVisibilityrecord component.- Returns:
- the value of the
defaultVisibilityrecord component
-
experienceFactorForItemTag
Returns the value of theexperienceFactorForItemTagrecord component.- Returns:
- the value of the
experienceFactorForItemTagrecord component
-
experienceFactorForItem
Returns the value of theexperienceFactorForItemrecord component.- Returns:
- the value of the
experienceFactorForItemrecord component
-
unlockPrice
public int unlockPrice()Returns the value of theunlockPricerecord component.- Returns:
- the value of the
unlockPricerecord component
-
exclusiveKey
Returns the value of theexclusiveKeyrecord component.- Returns:
- the value of the
exclusiveKeyrecord component
-