mirror of
http://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8.git
synced 2025-04-30 02:01:59 -05:00
12 lines
279 B
Java
12 lines
279 B
Java
package net.optifine.config;
|
|
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class ItemLocator implements IObjectLocator {
|
|
public Object getObject(ResourceLocation loc) {
|
|
Item item = Item.getByNameOrId(loc.toString());
|
|
return item;
|
|
}
|
|
}
|