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
official fia$b
intermediary net/minecraft/class_8100$class_8101
named net/minecraft/client/gui/screen/world/WorldCreator$WorldType
official a
intermediary comp_1238
named preset
  • Field Details

    • preset

      The field for the preset record component.
    • CUSTOM_GENERATOR_TEXT

      private static final Text CUSTOM_GENERATOR_TEXT
      Mappings:
      Namespace Name Mixin selector
      official b Lfia$b;b:Lvf;
      intermediary field_42226 Lnet/minecraft/class_8100$class_8101;field_42226:Lnet/minecraft/class_2561;
      named CUSTOM_GENERATOR_TEXT Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;CUSTOM_GENERATOR_TEXT:Lnet/minecraft/text/Text;
  • Constructor Details

  • Method Details

    • getName

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lfia$b;a()Lvf;
      intermediary method_48737 Lnet/minecraft/class_8100$class_8101;method_48737()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;getName()Lnet/minecraft/text/Text;
    • isAmplified

      public boolean isAmplified()
      Mappings:
      Namespace Name Mixin selector
      official b Lfia$b;b()Z
      intermediary method_48739 Lnet/minecraft/class_8100$class_8101;method_48739()Z
      named isAmplified Lnet/minecraft/client/gui/screen/world/WorldCreator$WorldType;isAmplified()Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • preset

      Returns the value of the preset record component.
      Returns:
      the value of the preset record component