Package net.minecraft.component.type
Record Class SpecialMineComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.SpecialMineComponent
- Record Components:
id-name-description-requiredEffects-randomEffects-unlockedBy-unlockedAfter-extraRandom-
public record SpecialMineComponent(String id, Text name, Text description, List<WorldEffect> requiredEffects, List<List<WorldEffect>> randomEffects, List<UnlockCondition> unlockedBy, List<SpecialMineComponent> unlockedAfter, int extraRandom)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/SpecialMineComponentintermediary net/minecraft/class_11105official fbxnamed idintermediary comp_3984official cnamed nameintermediary comp_3985official dnamed descriptionintermediary comp_3986official enamed requiredEffectsintermediary comp_3987official fnamed randomEffectsintermediary comp_3988official gnamed unlockedByintermediary comp_3989official hnamed unlockedAfterintermediary comp_3990official inamed extraRandomintermediary comp_3991official j
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpecialMineComponent> private final TextThe field for thedescriptionrecord component.private final intThe field for theextraRandomrecord component.private final StringThe field for theidrecord component.private final TextThe field for thenamerecord component.static final PacketCodec<RegistryByteBuf, SpecialMineComponent> private final List<List<WorldEffect>> The field for therandomEffectsrecord component.private final List<WorldEffect> The field for therequiredEffectsrecord component.private final List<SpecialMineComponent> The field for theunlockedAfterrecord component.private final List<UnlockCondition> The field for theunlockedByrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpecialMineComponent(String string, Text text, Text text2, List<WorldEffect> list, List<List<WorldEffect>> list2, List<UnlockCondition> list3, List<SpecialMineComponent> list4, int int2) -
Method Summary
Modifier and TypeMethodDescriptionstatic SpecialMineComponent.BuilderReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextraRandomrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.method_69903(ServerWorld serverWorld) name()Returns the value of thenamerecord component.Returns the value of therandomEffectsrecord component.Returns the value of therequiredEffectsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunlockedAfterrecord component.Returns the value of theunlockedByrecord component.
-
Field Details
-
id
The field for theidrecord component. -
name
The field for thenamerecord component. -
description
The field for thedescriptionrecord component. -
requiredEffects
The field for therequiredEffectsrecord component. -
randomEffects
The field for therandomEffectsrecord component. -
unlockedBy
The field for theunlockedByrecord component. -
unlockedAfter
The field for theunlockedAfterrecord component. -
extraRandom
private final int extraRandomThe field for theextraRandomrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/SpecialMineComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_59113Lnet/minecraft/class_11105;field_59113:Lcom/mojang/serialization/Codec;official aLfbx;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/SpecialMineComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59114Lnet/minecraft/class_11105;field_59114:Lnet/minecraft/class_9139;official bLfbx;b:Lzg;
-
-
Constructor Details
-
SpecialMineComponent
public SpecialMineComponent(String string, Text text, Text text2, List<WorldEffect> list, List<List<WorldEffect>> list2, List<UnlockCondition> list3, List<SpecialMineComponent> list4, int int2)
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/component/type/SpecialMineComponent;builder(Ljava/lang/String;)Lnet/minecraft/component/type/SpecialMineComponent$Builder;intermediary method_69904Lnet/minecraft/class_11105;method_69904(Ljava/lang/String;)Lnet/minecraft/class_11105$class_11106;official aLfbx;a(Ljava/lang/String;)Lfbx$a;
-
method_69903
- Mappings:
Namespace Name Mixin selector named method_69903Lnet/minecraft/component/type/SpecialMineComponent;method_69903(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/List;intermediary method_69903Lnet/minecraft/class_11105;method_69903(Lnet/minecraft/class_3218;)Ljava/util/List;official aLfbx;a(Last;)Ljava/util/List;
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
requiredEffects
Returns the value of therequiredEffectsrecord component.- Returns:
- the value of the
requiredEffectsrecord component
-
randomEffects
Returns the value of therandomEffectsrecord component.- Returns:
- the value of the
randomEffectsrecord component
-
unlockedBy
Returns the value of theunlockedByrecord component.- Returns:
- the value of the
unlockedByrecord component
-
unlockedAfter
Returns the value of theunlockedAfterrecord component.- Returns:
- the value of the
unlockedAfterrecord component
-
extraRandom
public int extraRandom()Returns the value of theextraRandomrecord component.- Returns:
- the value of the
extraRandomrecord component
-