Class DimensionType

java.lang.Object
net.minecraft.world.dimension.DimensionType

public class DimensionType
extends Object
  • Field Details

    • OVERWORLD_ID

      public static final Identifier OVERWORLD_ID
    • THE_NETHER_ID

      public static final Identifier THE_NETHER_ID
    • THE_END_ID

      public static final Identifier THE_END_ID
    • CODEC

      public static final com.mojang.serialization.Codec<DimensionType> CODEC
    • MOON_SIZES

      public static final float[] MOON_SIZES
    • OVERWORLD_REGISTRY_KEY

      public static final RegistryKey<DimensionType> OVERWORLD_REGISTRY_KEY
    • THE_NETHER_REGISTRY_KEY

      public static final RegistryKey<DimensionType> THE_NETHER_REGISTRY_KEY
    • THE_END_REGISTRY_KEY

      public static final RegistryKey<DimensionType> THE_END_REGISTRY_KEY
    • OVERWORLD

      protected static final DimensionType OVERWORLD
    • THE_NETHER

      protected static final DimensionType THE_NETHER
    • THE_END

      protected static final DimensionType THE_END
    • OVERWORLD_CAVES_REGISTRY_KEY

      public static final RegistryKey<DimensionType> OVERWORLD_CAVES_REGISTRY_KEY
    • OVERWORLD_CAVES

      protected static final DimensionType OVERWORLD_CAVES
    • REGISTRY_CODEC

      public static final com.mojang.serialization.Codec<Supplier<DimensionType>> REGISTRY_CODEC
    • fixedTime

      private final OptionalLong fixedTime
    • hasSkyLight

      private final boolean hasSkyLight
    • hasCeiling

      private final boolean hasCeiling
    • ultrawarm

      private final boolean ultrawarm
    • natural

      private final boolean natural
    • coordinateScale

      private final double coordinateScale
    • hasEnderDragonFight

      private final boolean hasEnderDragonFight
    • piglinSafe

      private final boolean piglinSafe
    • bedWorks

      private final boolean bedWorks
    • respawnAnchorWorks

      private final boolean respawnAnchorWorks
    • hasRaids

      private final boolean hasRaids
    • logicalHeight

      private final int logicalHeight
    • biomeAccessType

      private final BiomeAccessType biomeAccessType
    • infiniburn

      private final Identifier infiniburn
    • skyProperties

      private final Identifier skyProperties
    • ambientLight

      private final float ambientLight
    • field_24767

      private final transient float[] field_24767
  • Constructor Details

    • DimensionType

      protected DimensionType​(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, Identifier infiniburn, Identifier skyProperties, float ambientLight)
    • DimensionType

      protected DimensionType​(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasEnderDragonFight, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, BiomeAccessType biomeAccessType, Identifier infiniburn, Identifier skyProperties, float ambientLight)
  • Method Details

    • method_28515

      private static float[] method_28515​(float float2)
    • method_28521

      @Deprecated public static com.mojang.serialization.DataResult<RegistryKey<World>> method_28521​(com.mojang.serialization.Dynamic<?> dynamic)
      Deprecated.
    • addRegistryDefaults

      public static DynamicRegistryManager.Impl addRegistryDefaults​(DynamicRegistryManager.Impl registryManager)
    • createEndGenerator

      private static ChunkGenerator createEndGenerator​(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
    • createNetherGenerator

      private static ChunkGenerator createNetherGenerator​(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
    • createDefaultDimensionOptions

      public static SimpleRegistry<DimensionOptions> createDefaultDimensionOptions​(Registry<DimensionType> dimensionRegistry, Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
    • method_31109

      public static double method_31109​(DimensionType dimensionType, DimensionType dimensionType2)
    • getSuffix

      @Deprecated public String getSuffix()
      Deprecated.
    • getSaveDirectory

      public static File getSaveDirectory​(RegistryKey<World> worldRef, File root)
    • hasSkyLight

      public boolean hasSkyLight()
    • hasCeiling

      public boolean hasCeiling()
    • isUltrawarm

      public boolean isUltrawarm()
    • isNatural

      public boolean isNatural()
    • getCoordinateScale

      public double getCoordinateScale()
    • isPiglinSafe

      public boolean isPiglinSafe()
    • isBedWorking

      public boolean isBedWorking()
    • isRespawnAnchorWorking

      public boolean isRespawnAnchorWorking()
    • hasRaids

      public boolean hasRaids()
    • getLogicalHeight

      public int getLogicalHeight()
    • hasEnderDragonFight

      public boolean hasEnderDragonFight()
    • getBiomeAccessType

      public BiomeAccessType getBiomeAccessType()
    • hasFixedTime

      public boolean hasFixedTime()
    • getSkyAngle

      public float getSkyAngle​(long time)
    • getMoonPhase

      public int getMoonPhase​(long time)
      Gets the moon phase index of Minecraft's moon.

      This is typically used to determine the size of the moon that should be rendered.

      Parameters:
      time - the time to calculate the index from
    • method_28516

      public float method_28516​(int int2)
    • getInfiniburnBlocks

      public Tag<Block> getInfiniburnBlocks()
    • getSkyProperties

      @Environment(CLIENT) public Identifier getSkyProperties()
    • equals

      public boolean equals​(DimensionType dimensionType)