mirror of
https://gitflic.ru/project/lax1dude/eaglercraft-1_8.git
synced 2025-07-21 13:01:31 -09: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;
|
|
}
|
|
}
|