Class ResourceLocation

    • Field Detail

      • CODEC

        public static final com.mojang.serialization.Codec<ResourceLocation> CODEC
      • ERROR_INVALID

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID
      • namespace

        protected final java.lang.String namespace
      • path

        protected final java.lang.String path
    • Constructor Detail

      • ResourceLocation

        protected ResourceLocation​(java.lang.String[] p_i47923_1_)
      • ResourceLocation

        public ResourceLocation​(java.lang.String p_i1293_1_)
      • ResourceLocation

        public ResourceLocation​(java.lang.String p_i1292_1_,
                                java.lang.String p_i1292_2_)
    • Method Detail

      • of

        public static ResourceLocation of​(java.lang.String p_195828_0_,
                                          char p_195828_1_)
      • tryParse

        @Nullable
        public static ResourceLocation tryParse​(java.lang.String p_208304_0_)
      • decompose

        protected static java.lang.String[] decompose​(java.lang.String p_195823_0_,
                                                      char p_195823_1_)
      • read

        private static com.mojang.serialization.DataResult<ResourceLocation> read​(java.lang.String p_240911_0_)
      • getPath

        public java.lang.String getPath()
      • getNamespace

        public java.lang.String getNamespace()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • read

        public static ResourceLocation read​(com.mojang.brigadier.StringReader p_195826_0_)
                                     throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • isAllowedInResourceLocation

        public static boolean isAllowedInResourceLocation​(char p_195824_0_)
      • isValidPath

        private static boolean isValidPath​(java.lang.String p_217856_0_)
      • isValidNamespace

        private static boolean isValidNamespace​(java.lang.String p_217858_0_)
      • validPathChar

        public static boolean validPathChar​(char p_240909_0_)
      • validNamespaceChar

        private static boolean validNamespaceChar​(char p_240910_0_)
      • isValidResourceLocation

        public static boolean isValidResourceLocation​(java.lang.String p_217855_0_)