public class LevelGeneratorType extends Object
| Modifier and Type | Field and Description |
|---|---|
static LevelGeneratorType |
AMPLIFIED |
static LevelGeneratorType |
BUFFET |
private boolean |
customizable |
static LevelGeneratorType |
CUSTOMIZED |
static LevelGeneratorType |
DEBUG_ALL_BLOCK_STATES |
static LevelGeneratorType |
DEFAULT |
static LevelGeneratorType |
DEFAULT_1_1 |
private Lazy<LevelGeneratorOptions> |
defaultOptions |
private static com.mojang.datafixers.Dynamic<?> |
EMPTY_COMPOUND_NBT_DYNAMIC |
static LevelGeneratorType |
FLAT |
private int |
id |
private boolean |
info |
static LevelGeneratorType |
LARGE_BIOMES |
private String |
name |
private Function<com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> |
optionsLoader |
private String |
storedName |
static LevelGeneratorType[] |
TYPES |
private int |
version |
private boolean |
versioned |
private boolean |
visible |
| Modifier | Constructor and Description |
|---|---|
private |
LevelGeneratorType(int index,
String name,
BiFunction<LevelGeneratorType,com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsFactory) |
private |
LevelGeneratorType(int index,
String name,
int version,
BiFunction<LevelGeneratorType,com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsFactory) |
private |
LevelGeneratorType(int index,
String name,
String storedName,
int version,
BiFunction<LevelGeneratorType,com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsFactory) |
| Modifier and Type | Method and Description |
|---|---|
LevelGeneratorOptions |
getDefaultOptions() |
int |
getId() |
String |
getInfoTranslationKey() |
String |
getName() |
String |
getStoredName() |
String |
getTranslationKey() |
LevelGeneratorType |
getTypeForVersion(int version) |
static LevelGeneratorType |
getTypeFromName(String name) |
int |
getVersion() |
boolean |
hasInfo() |
boolean |
isCustomizable() |
boolean |
isVersioned() |
boolean |
isVisible() |
LevelGeneratorOptions |
loadOptions(com.mojang.datafixers.Dynamic<?> dynamic) |
LevelGeneratorType |
setCustomizable(boolean customizable) |
private LevelGeneratorType |
setHasInfo() |
private LevelGeneratorType |
setVersioned() |
private LevelGeneratorType |
setVisible(boolean visible) |
public static final LevelGeneratorType[] TYPES
private static final com.mojang.datafixers.Dynamic<?> EMPTY_COMPOUND_NBT_DYNAMIC
public static final LevelGeneratorType DEFAULT
public static final LevelGeneratorType FLAT
public static final LevelGeneratorType LARGE_BIOMES
public static final LevelGeneratorType AMPLIFIED
public static final LevelGeneratorType CUSTOMIZED
public static final LevelGeneratorType BUFFET
public static final LevelGeneratorType DEBUG_ALL_BLOCK_STATES
public static final LevelGeneratorType DEFAULT_1_1
private final int id
private final String name
private final String storedName
private final int version
private final Function<com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsLoader
private final Lazy<LevelGeneratorOptions> defaultOptions
private boolean visible
private boolean versioned
private boolean info
private boolean customizable
private LevelGeneratorType(int index,
String name,
BiFunction<LevelGeneratorType,com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsFactory)
private LevelGeneratorType(int index,
String name,
int version,
BiFunction<LevelGeneratorType,com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsFactory)
private LevelGeneratorType(int index,
String name,
String storedName,
int version,
BiFunction<LevelGeneratorType,com.mojang.datafixers.Dynamic<?>,LevelGeneratorOptions> optionsFactory)
public String getName()
public String getStoredName()
@Environment(value=CLIENT) public String getTranslationKey()
@Environment(value=CLIENT) public String getInfoTranslationKey()
public int getVersion()
public LevelGeneratorType getTypeForVersion(int version)
@Environment(value=CLIENT) public boolean isCustomizable()
public LevelGeneratorType setCustomizable(boolean customizable)
private LevelGeneratorType setVisible(boolean visible)
@Environment(value=CLIENT) public boolean isVisible()
private LevelGeneratorType setVersioned()
public boolean isVersioned()
@Nullable public static LevelGeneratorType getTypeFromName(String name)
public int getId()
@Environment(value=CLIENT) public boolean hasInfo()
private LevelGeneratorType setHasInfo()
public LevelGeneratorOptions loadOptions(com.mojang.datafixers.Dynamic<?> dynamic)
public LevelGeneratorOptions getDefaultOptions()