Class DimensionType

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

public class DimensionType
extends Object
  • Field Details

    • field_28133

      public static final int field_28133
    • field_28134

      public static final int field_28134
    • field_28135

      public static final int field_28135
    • field_28136

      public static final int field_28136
    • 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
    • minimumY

      private final int minimumY
    • height

      private final int height
    • 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

      private DimensionType​(OptionalLong fixedTime, boolean hasSkylight, boolean hasCeiling, boolean ultrawarm, boolean natural, double coordinateScale, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int int2, int int3, Identifier identifier, Identifier identifier2, float float2)
    • DimensionType

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

    • method_32923

      private static com.mojang.serialization.DataResult<DimensionType> method_32923​(DimensionType type)
    • method_32922

      public static DimensionType method_32922​(OptionalLong optionalLong, boolean bool, boolean bool2, boolean bool3, boolean bool4, double double2, boolean bool5, boolean bool6, boolean bool7, boolean bool8, boolean bool9, int int2, int int3, int int4, BiomeAccessType biomeAccessType, Identifier identifier, Identifier identifier2, float float2)
    • 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()
    • getMinimumY

      public int getMinimumY()
    • getHeight

      public int getHeight()
    • 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)