public class DimensionType extends ForgeRegistryEntry<DimensionType> implements IDynamicSerializable
Modifier and Type | Field and Description |
---|---|
private PacketBuffer |
data |
private java.lang.String |
directory |
private java.util.function.BiFunction<World,DimensionType,? extends Dimension> |
factory |
private boolean |
hasSkyLight |
private int |
id |
private boolean |
isVanilla |
private IBiomeMagnifier |
magnifier |
private ModDimension |
modType |
static DimensionType |
OVERWORLD |
private java.lang.String |
suffix |
static DimensionType |
THE_END |
static DimensionType |
THE_NETHER |
delegate
Modifier | Constructor and Description |
---|---|
protected |
DimensionType(int p_i225789_1_,
java.lang.String p_i225789_2_,
java.lang.String p_i225789_3_,
java.util.function.BiFunction<World,DimensionType,? extends Dimension> p_i225789_4_,
boolean p_i225789_5_,
IBiomeMagnifier p_i225789_6_)
Deprecated.
|
|
DimensionType(int p_i225789_1_,
java.lang.String p_i225789_2_,
java.lang.String p_i225789_3_,
java.util.function.BiFunction<World,DimensionType,? extends Dimension> p_i225789_4_,
boolean p_i225789_5_,
IBiomeMagnifier p_i225789_6_,
ModDimension modType,
PacketBuffer data)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DimensionType |
byName(ResourceLocation nameIn) |
Dimension |
create(World worldIn) |
static DimensionType |
deserialize(com.mojang.datafixers.Dynamic<?> p_218271_0_) |
static java.lang.Iterable<DimensionType> |
getAll() |
static DimensionType |
getById(int id) |
PacketBuffer |
getData() |
java.io.File |
getDirectory(java.io.File p_212679_1_) |
int |
getId() |
static ResourceLocation |
getKey(DimensionType dim) |
IBiomeMagnifier |
getMagnifier() |
ModDimension |
getModType() |
java.lang.String |
getSuffix()
Deprecated.
|
boolean |
hasSkyLight() |
boolean |
isVanilla() |
private static DimensionType |
register(java.lang.String key,
DimensionType type) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_) |
java.lang.String |
toString() |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final DimensionType OVERWORLD
public static final DimensionType THE_NETHER
public static final DimensionType THE_END
private final int id
private final java.lang.String suffix
private final java.lang.String directory
private final java.util.function.BiFunction<World,DimensionType,? extends Dimension> factory
private final boolean hasSkyLight
private final IBiomeMagnifier magnifier
private final boolean isVanilla
private final ModDimension modType
private final PacketBuffer data
@Deprecated protected DimensionType(int p_i225789_1_, java.lang.String p_i225789_2_, java.lang.String p_i225789_3_, java.util.function.BiFunction<World,DimensionType,? extends Dimension> p_i225789_4_, boolean p_i225789_5_, IBiomeMagnifier p_i225789_6_)
@Deprecated public DimensionType(int p_i225789_1_, java.lang.String p_i225789_2_, java.lang.String p_i225789_3_, java.util.function.BiFunction<World,DimensionType,? extends Dimension> p_i225789_4_, boolean p_i225789_5_, IBiomeMagnifier p_i225789_6_, @Nullable ModDimension modType, @Nullable PacketBuffer data)
private static DimensionType register(java.lang.String key, DimensionType type)
public static DimensionType deserialize(com.mojang.datafixers.Dynamic<?> p_218271_0_)
public static java.lang.Iterable<DimensionType> getAll()
public int getId()
@Deprecated public java.lang.String getSuffix()
public java.io.File getDirectory(java.io.File p_212679_1_)
public java.lang.String toString()
toString
in class java.lang.Object
@Nullable public static DimensionType getById(int id)
public boolean isVanilla()
@Nullable public ModDimension getModType()
@Nullable public PacketBuffer getData()
@Nullable public static DimensionType byName(ResourceLocation nameIn)
@Nullable public static ResourceLocation getKey(DimensionType dim)
public boolean hasSkyLight()
public IBiomeMagnifier getMagnifier()
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_)
serialize
in interface IDynamicSerializable