Enum Heightmap.Type

    • Field Detail

      • CODEC

        public static final com.mojang.serialization.Codec<Heightmap.Type> CODEC
      • serializationKey

        private final java.lang.String serializationKey
      • isOpaque

        private final java.util.function.Predicate<BlockState> isOpaque
      • REVERSE_LOOKUP

        private static final java.util.Map<java.lang.String,​Heightmap.Type> REVERSE_LOOKUP
    • Constructor Detail

      • Type

        private Type​(java.lang.String p_i50821_3_,
                     Heightmap.Usage p_i50821_4_,
                     java.util.function.Predicate<BlockState> p_i50821_5_)
    • Method Detail

      • values

        public static Heightmap.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Heightmap.Type c : Heightmap.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Heightmap.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSerializationKey

        public java.lang.String getSerializationKey()
      • sendToClient

        public boolean sendToClient()
      • keepAfterWorldgen

        public boolean keepAfterWorldgen()
      • getFromKey

        @Nullable
        public static Heightmap.Type getFromKey​(java.lang.String p_203501_0_)
      • isOpaque

        public java.util.function.Predicate<BlockState> isOpaque()