Class DimensionType

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

public class DimensionType extends Object
  • Field Details

    • BITS_FOR_Y

      public static final int BITS_FOR_Y
    • MIN_HEIGHT

      public static final int MIN_HEIGHT
      See Also:
      Constant Field Values
    • Y_SIZE

      public static final int Y_SIZE
    • MAX_Y

      public static final int MAX_Y
    • MIN_Y

      public static final int MIN_Y
    • OVERWORLD_EFFECTS

      public static final ResourceLocation OVERWORLD_EFFECTS
    • NETHER_EFFECTS

      public static final ResourceLocation NETHER_EFFECTS
    • END_EFFECTS

      public static final ResourceLocation END_EFFECTS
    • DIRECT_CODEC

      public static final com.mojang.serialization.Codec<DimensionType> DIRECT_CODEC
    • MOON_PHASES

      private static final int MOON_PHASES
      See Also:
      Constant Field Values
    • MOON_BRIGHTNESS_PER_PHASE

      public static final float[] MOON_BRIGHTNESS_PER_PHASE
    • OVERWORLD_LOCATION

      public static final ResourceKey<DimensionType> OVERWORLD_LOCATION
    • NETHER_LOCATION

      public static final ResourceKey<DimensionType> NETHER_LOCATION
    • END_LOCATION

      public static final ResourceKey<DimensionType> END_LOCATION
    • DEFAULT_OVERWORLD

      protected static final DimensionType DEFAULT_OVERWORLD
    • DEFAULT_NETHER

      protected static final DimensionType DEFAULT_NETHER
    • DEFAULT_END

      protected static final DimensionType DEFAULT_END
    • OVERWORLD_CAVES_LOCATION

      public static final ResourceKey<DimensionType> OVERWORLD_CAVES_LOCATION
    • DEFAULT_OVERWORLD_CAVES

      protected static final DimensionType DEFAULT_OVERWORLD_CAVES
    • CODEC

      public static final com.mojang.serialization.Codec<Supplier<DimensionType>> 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
    • createDragonFight

      private final boolean createDragonFight
    • piglinSafe

      private final boolean piglinSafe
    • bedWorks

      private final boolean bedWorks
    • respawnAnchorWorks

      private final boolean respawnAnchorWorks
    • hasRaids

      private final boolean hasRaids
    • minY

      private final int minY
    • height

      private final int height
    • logicalHeight

      private final int logicalHeight
    • biomeZoomer

      private final BiomeZoomer biomeZoomer
    • infiniburn

      private final ResourceLocation infiniburn
    • effectsLocation

      private final ResourceLocation effectsLocation
    • ambientLight

      private final float ambientLight
    • brightnessRamp

      private final transient float[] brightnessRamp
  • Constructor Details

    • DimensionType

      private DimensionType(OptionalLong p_156656_, boolean p_156657_, boolean p_156658_, boolean p_156659_, boolean p_156660_, double p_156661_, boolean p_156662_, boolean p_156663_, boolean p_156664_, boolean p_156665_, int p_156666_, int p_156667_, int p_156668_, ResourceLocation p_156669_, ResourceLocation p_156670_, float p_156671_)
    • DimensionType

      @Deprecated private DimensionType(OptionalLong p_156673_, boolean p_156674_, boolean p_156675_, boolean p_156676_, boolean p_156677_, double p_156678_, boolean p_156679_, boolean p_156680_, boolean p_156681_, boolean p_156682_, boolean p_156683_, int p_156684_, int p_156685_, int p_156686_, BiomeZoomer p_156687_, ResourceLocation p_156688_, ResourceLocation p_156689_, float p_156690_)
      Deprecated.
  • Method Details

    • guardY

      private static com.mojang.serialization.DataResult<DimensionType> guardY(DimensionType p_156719_)
    • create

      public static DimensionType create(OptionalLong p_156700_, boolean p_156701_, boolean p_156702_, boolean p_156703_, boolean p_156704_, double p_156705_, boolean p_156706_, boolean p_156707_, boolean p_156708_, boolean p_156709_, boolean p_156710_, int p_156711_, int p_156712_, int p_156713_, BiomeZoomer p_156714_, ResourceLocation p_156715_, ResourceLocation p_156716_, float p_156717_)
    • fillBrightnessRamp

      private static float[] fillBrightnessRamp(float p_63901_)
    • parseLegacy

      @Deprecated public static com.mojang.serialization.DataResult<ResourceKey<Level>> parseLegacy(com.mojang.serialization.Dynamic<?> p_63912_)
      Deprecated.
    • registerBuiltin

      public static RegistryAccess.RegistryHolder registerBuiltin(RegistryAccess.RegistryHolder p_63927_)
    • defaultEndGenerator

      private static ChunkGenerator defaultEndGenerator(Registry<Biome> p_63918_, Registry<NoiseGeneratorSettings> p_63919_, long p_63920_)
    • defaultNetherGenerator

      private static ChunkGenerator defaultNetherGenerator(Registry<Biome> p_63943_, Registry<NoiseGeneratorSettings> p_63944_, long p_63945_)
    • defaultDimensions

      public static MappedRegistry<LevelStem> defaultDimensions(Registry<DimensionType> p_63922_, Registry<Biome> p_63923_, Registry<NoiseGeneratorSettings> p_63924_, long p_63925_)
    • getTeleportationScale

      public static double getTeleportationScale(DimensionType p_63909_, DimensionType p_63910_)
    • getFileSuffix

      @Deprecated public String getFileSuffix()
      Deprecated.
    • getStorageFolder

      public static File getStorageFolder(ResourceKey<Level> p_63933_, File p_63934_)
    • hasSkyLight

      public boolean hasSkyLight()
    • hasCeiling

      public boolean hasCeiling()
    • ultraWarm

      public boolean ultraWarm()
    • natural

      public boolean natural()
    • coordinateScale

      public double coordinateScale()
    • piglinSafe

      public boolean piglinSafe()
    • bedWorks

      public boolean bedWorks()
    • respawnAnchorWorks

      public boolean respawnAnchorWorks()
    • hasRaids

      public boolean hasRaids()
    • minY

      public int minY()
    • height

      public int height()
    • logicalHeight

      public int logicalHeight()
    • createDragonFight

      public boolean createDragonFight()
    • getBiomeZoomer

      public BiomeZoomer getBiomeZoomer()
    • hasFixedTime

      public boolean hasFixedTime()
    • timeOfDay

      public float timeOfDay(long p_63905_)
    • moonPhase

      public int moonPhase(long p_63937_)
    • brightness

      public float brightness(int p_63903_)
    • infiniburn

      public Tag<Block> infiniburn()
    • effectsLocation

      public ResourceLocation effectsLocation()
    • equalTo

      public boolean equalTo(DimensionType p_63907_)