Class ResourceLocation

  • Direct Known Subclasses:
    ModelResourceLocation

    public class ResourceLocation
    extends java.lang.Object
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ResourceLocation​(int parInt1, java.lang.String... resourceName)  
        ResourceLocation​(java.lang.String resourceName)  
        ResourceLocation​(java.lang.String resourceDomainIn, java.lang.String resourcePathIn)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      java.lang.String getResourceDomain()  
      java.lang.String getResourcePath()  
      int hashCode()  
      protected static java.lang.String[] splitObjectName​(java.lang.String toSplit)
      + Splits an object name (such as minecraft:apple) into the domain and path parts and returns these as an array of length 2.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • resourceDomain

        protected final java.lang.String resourceDomain
      • resourcePath

        protected final java.lang.String resourcePath
      • resourceName

        public java.lang.String resourceName
      • cachedPointer

        public java.lang.Object cachedPointer
    • Constructor Detail

      • ResourceLocation

        protected ResourceLocation​(int parInt1,
                                   java.lang.String... resourceName)
      • ResourceLocation

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

        public ResourceLocation​(java.lang.String resourceDomainIn,
                                java.lang.String resourcePathIn)
    • Method Detail

      • splitObjectName

        protected static java.lang.String[] splitObjectName​(java.lang.String toSplit)
        + Splits an object name (such as minecraft:apple) into the domain and path parts and returns these as an array of length 2. If no colon is present in the passed value the returned array will contain {null, toSplit}.
      • getResourcePath

        public java.lang.String getResourcePath()
      • getResourceDomain

        public java.lang.String getResourceDomain()
      • toString

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

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

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