Class DimensionType


  • public class DimensionType
    extends java.lang.Object
    • Field Detail

      • DIRECT_CODEC

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

        public static final float[] MOON_BRIGHTNESS_PER_PHASE
      • DEFAULT_OVERWORLD

        protected static final DimensionType DEFAULT_OVERWORLD
      • DEFAULT_NETHER

        protected static final DimensionType DEFAULT_NETHER
      • DEFAULT_OVERWORLD_CAVES

        protected static final DimensionType DEFAULT_OVERWORLD_CAVES
      • CODEC

        public static final com.mojang.serialization.Codec<java.util.function.Supplier<DimensionType>> CODEC
      • fixedTime

        private final java.util.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
      • logicalHeight

        private final int logicalHeight
      • ambientLight

        private final float ambientLight
      • brightnessRamp

        private final transient float[] brightnessRamp
    • Constructor Detail

      • DimensionType

        protected DimensionType​(java.util.OptionalLong p_i241972_1_,
                                boolean p_i241972_2_,
                                boolean p_i241972_3_,
                                boolean p_i241972_4_,
                                boolean p_i241972_5_,
                                double p_i241972_6_,
                                boolean p_i241972_8_,
                                boolean p_i241972_9_,
                                boolean p_i241972_10_,
                                boolean p_i241972_11_,
                                int p_i241972_12_,
                                ResourceLocation p_i241972_13_,
                                ResourceLocation p_i241972_14_,
                                float p_i241972_15_)
      • DimensionType

        protected DimensionType​(java.util.OptionalLong p_i241973_1_,
                                boolean p_i241973_2_,
                                boolean p_i241973_3_,
                                boolean p_i241973_4_,
                                boolean p_i241973_5_,
                                double p_i241973_6_,
                                boolean p_i241973_8_,
                                boolean p_i241973_9_,
                                boolean p_i241973_10_,
                                boolean p_i241973_11_,
                                boolean p_i241973_12_,
                                int p_i241973_13_,
                                IBiomeMagnifier p_i241973_14_,
                                ResourceLocation p_i241973_15_,
                                ResourceLocation p_i241973_16_,
                                float p_i241973_17_)
    • Method Detail

      • fillBrightnessRamp

        private static float[] fillBrightnessRamp​(float p_236020_0_)
      • parseLegacy

        @Deprecated
        public static com.mojang.serialization.DataResult<RegistryKey<World>> parseLegacy​(com.mojang.serialization.Dynamic<?> p_236025_0_)
        Deprecated.
      • getFileSuffix

        @Deprecated
        public java.lang.String getFileSuffix()
        Deprecated.
      • getStorageFolder

        public static java.io.File getStorageFolder​(RegistryKey<World> p_236031_0_,
                                                    java.io.File p_236031_1_)
      • 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()
      • logicalHeight

        public int logicalHeight()
      • createDragonFight

        public boolean createDragonFight()
      • hasFixedTime

        public boolean hasFixedTime()
      • timeOfDay

        public float timeOfDay​(long p_236032_1_)
      • moonPhase

        public int moonPhase​(long p_236035_1_)
      • brightness

        public float brightness​(int p_236021_1_)
      • infiniburn

        public ITag<Block> infiniburn()
      • equalTo

        public boolean equalTo​(DimensionType p_242714_1_)