Package net.minecraft.util
Class ResourceLocation
- java.lang.Object
-
- net.minecraft.util.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)
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
cachedPointer
protected java.lang.String
resourceDomain
java.lang.String
resourceName
protected java.lang.String
resourcePath
-
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()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-