Package net.minecraft.aprilfools
Record Class PlayerUnlock
java.lang.Object
java.lang.Record
net.minecraft.aprilfools.PlayerUnlock
- Record Components:
key-parent-disables-display-activation-onMineEnter-madeVisibleBy-defaultVisibility-experienceFactorForItemTag-experienceFactorForItem-unlockPrice-exclusiveKey-
public record PlayerUnlock(String key, Optional<RegistryEntry<PlayerUnlock>> parent, List<RegistryEntry<PlayerUnlock>> disables, AdvancementDisplay display, Consumer<ServerPlayerEntity> activation, Consumer<ServerPlayerEntity> onMineEnter, List<UnlockCondition> madeVisibleBy, PlayerUnlock.Visibility defaultVisibility, Map<TagKey<Item>,Float> experienceFactorForItemTag, Map<Item,Float> experienceFactorForItem, int unlockPrice, String exclusiveKey)
extends Record
- Mappings:
Namespace Name named net/minecraft/aprilfools/PlayerUnlockintermediary 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.static final com.mojang.serialization.Codec<RegistryEntry<PlayerUnlock>> private final PlayerUnlock.VisibilityThe field for thedefaultVisibilityrecord component.private final List<RegistryEntry<PlayerUnlock>> 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.private final StringThe field for thekeyrecord component.private final List<UnlockCondition> The field for themadeVisibleByrecord component.private final Consumer<ServerPlayerEntity> The field for theonMineEnterrecord component.private final Optional<RegistryEntry<PlayerUnlock>> The field for theparentrecord component.private final intThe field for theunlockPricerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPlayerUnlock(String string, Optional<RegistryEntry<PlayerUnlock>> optional, List<RegistryEntry<PlayerUnlock>> list, AdvancementDisplay advancementDisplay, Consumer<ServerPlayerEntity> consumer, Consumer<ServerPlayerEntity> consumer2, List<UnlockCondition> list2, PlayerUnlock.Visibility visibility, Map<TagKey<Item>, Float> map, Map<Item, Float> map2, int int2, String string2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivationrecord component.static PlayerUnlock.Builderstatic PlayerUnlock.Builderbuilder(String key, RegistryEntry<PlayerUnlock> parent) 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.static RegistryEntry<PlayerUnlock> getRoot(RegistryEntry<PlayerUnlock> unlock) final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of themadeVisibleByrecord component.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. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/aprilfools/PlayerUnlock;CODEC: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
-
PlayerUnlock
public PlayerUnlock(String string, Optional<RegistryEntry<PlayerUnlock>> optional, List<RegistryEntry<PlayerUnlock>> list, AdvancementDisplay advancementDisplay, Consumer<ServerPlayerEntity> consumer, Consumer<ServerPlayerEntity> consumer2, List<UnlockCondition> list2, PlayerUnlock.Visibility visibility, Map<TagKey<Item>, Float> map, Map<Item, Float> map2, int int2, String string2)
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/aprilfools/PlayerUnlock;builder(Ljava/lang/String;)Lnet/minecraft/aprilfools/PlayerUnlock$Builder;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;
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/aprilfools/PlayerUnlock;builder(Ljava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/aprilfools/PlayerUnlock$Builder;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;
-
getRoot
- Mappings:
Namespace Name Mixin selector named getRootLnet/minecraft/aprilfools/PlayerUnlock;getRoot(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
-