Record Class InitialWorldOptions
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.world.InitialWorldOptions
- Record Components:
- selectedGameMode-
- disabledGameRules-
- flatLevelPreset-
@Environment(CLIENT)
public record InitialWorldOptions(WorldCreator.Mode selectedGameMode, Set<GameRules.Key<GameRules.BooleanRule>> disabledGameRules, @Nullable RegistryKey<FlatLevelGeneratorPreset> flatLevelPreset)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/client/gui/screen/world/InitialWorldOptions- intermediary - net/minecraft/class_10220- official - fzq- named - selectedGameMode- intermediary - comp_3215- official - a- named - disabledGameRules- intermediary - comp_3216- official - b- named - flatLevelPreset- intermediary - comp_3217- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Set<GameRules.Key<GameRules.BooleanRule>> The field for thedisabledGameRulesrecord component.private final @Nullable RegistryKey<FlatLevelGeneratorPreset> The field for theflatLevelPresetrecord component.private final WorldCreator.ModeThe field for theselectedGameModerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionInitialWorldOptions(WorldCreator.Mode mode, Set<GameRules.Key<GameRules.BooleanRule>> set, @Nullable RegistryKey<FlatLevelGeneratorPreset> registryKey) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedisabledGameRulesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflatLevelPresetrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theselectedGameModerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
selectedGameModeThe field for theselectedGameModerecord component.
- 
disabledGameRulesThe field for thedisabledGameRulesrecord component.
- 
flatLevelPresetThe field for theflatLevelPresetrecord component.
 
- 
- 
Constructor Details- 
InitialWorldOptionspublic InitialWorldOptions(WorldCreator.Mode mode, Set<GameRules.Key<GameRules.BooleanRule>> set, @Nullable @Nullable RegistryKey<FlatLevelGeneratorPreset> registryKey) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
selectedGameModeReturns the value of theselectedGameModerecord component.- Returns:
- the value of the selectedGameModerecord component
 
- 
disabledGameRulesReturns the value of thedisabledGameRulesrecord component.- Returns:
- the value of the disabledGameRulesrecord component
 
- 
flatLevelPresetReturns the value of theflatLevelPresetrecord component.- Returns:
- the value of the flatLevelPresetrecord component
 
 
-