Record Class WorldCreator.WorldType
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.world.WorldCreator.WorldType
- Record Components:
preset
-
- Enclosing class:
WorldCreator
@Environment(CLIENT)
public static record WorldCreator.WorldType(@Nullable RegistryEntry<WorldPreset> preset)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/world/WorldCreator$WorldType
intermediary net/minecraft/class_8100$class_8101
official fsd$b
named preset
intermediary comp_1238
official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Text
private final @Nullable RegistryEntry
<WorldPreset> The field for thepreset
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getName()
final int
hashCode()
Returns a hash code value for this object.boolean
preset()
Returns the value of thepreset
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
preset
The field for thepreset
record component. -
CUSTOM_GENERATOR_TEXT
- Mappings:
Namespace Name Mixin selector named CUSTOM_GENERATOR_TEXT
Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;CUSTOM_GENERATOR_TEXT:Lnet/minecraft/text/Text;
intermediary field_42226
Lnet/minecraft/class_8100$class_8101;field_42226:Lnet/minecraft/class_2561;
official b
Lfsd$b;b:Lxp;
-
-
Constructor Details
-
WorldType
-
-
Method Details
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;getName()Lnet/minecraft/text/Text;
intermediary method_48737
Lnet/minecraft/class_8100$class_8101;method_48737()Lnet/minecraft/class_2561;
official a
Lfsd$b;a()Lxp;
-
isAmplified
public boolean isAmplified()- Mappings:
Namespace Name Mixin selector named isAmplified
Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;isAmplified()Z
intermediary method_48739
Lnet/minecraft/class_8100$class_8101;method_48739()Z
official b
Lfsd$b;b()Z
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
preset
Returns the value of thepreset
record component.- Returns:
- the value of the
preset
record component
-