Interface DimensionType
public sealed interface DimensionType
https://minecraft.wiki/w/Custom_dimension
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey
<DimensionType> static final RegistryKey
<DimensionType> static final @NotNull net.kyori.adventure.key.Key
static final @NotNull Codec
<DimensionType> static final RegistryKey
<DimensionType> static final RegistryKey
<DimensionType> static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionfloat
boolean
bedWorks()
static @NotNull DimensionType.Builder
builder()
double
static @NotNull DimensionType
create
(boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, @Nullable Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, @NotNull String infiniburn, @NotNull net.kyori.adventure.key.Key effects, int monsterSpawnBlockLightLimit, int monsterSpawnLightLevel) static @NotNull DynamicRegistry
<DimensionType> Creates a new registry for dimension types, loading the vanilla dimension types.@NotNull net.kyori.adventure.key.Key
effects()
@Nullable Long
boolean
boolean
hasRaids()
boolean
int
height()
@NotNull String
int
default int
maxY()
int
minY()
int
int
boolean
natural()
boolean
boolean
default int
boolean
-
Field Details
-
OVERWORLD_EFFECTS
@NotNull static final @NotNull net.kyori.adventure.key.Key OVERWORLD_EFFECTS -
VANILLA_MIN_Y
static final int VANILLA_MIN_Y- See Also:
-
VANILLA_MAX_Y
static final int VANILLA_MAX_Y- See Also:
-
REGISTRY_CODEC
-
THE_END
-
OVERWORLD_CAVES
-
THE_NETHER
-
OVERWORLD
-
-
Method Details
-
create
@NotNull static @NotNull DimensionType create(boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, @Nullable @Nullable Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, @NotNull @NotNull String infiniburn, @NotNull @NotNull net.kyori.adventure.key.Key effects, int monsterSpawnBlockLightLimit, int monsterSpawnLightLevel) -
builder
-
createDefaultRegistry
Creates a new registry for dimension types, loading the vanilla dimension types.
- See Also:
-
ultrawarm
boolean ultrawarm() -
natural
boolean natural() -
coordinateScale
double coordinateScale() -
hasSkylight
boolean hasSkylight() -
hasCeiling
boolean hasCeiling() -
ambientLight
float ambientLight() -
fixedTime
-
piglinSafe
boolean piglinSafe() -
bedWorks
boolean bedWorks() -
respawnAnchorWorks
boolean respawnAnchorWorks() -
hasRaids
boolean hasRaids() -
logicalHeight
int logicalHeight() -
minY
int minY() -
maxY
default int maxY() -
height
int height() -
infiniburn
-
effects
@NotNull @NotNull net.kyori.adventure.key.Key effects() -
monsterSpawnBlockLightLimit
int monsterSpawnBlockLightLimit() -
monsterSpawnLightLevel
int monsterSpawnLightLevel() -
totalHeight
default int totalHeight()
-