mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-28 10:58:15 -05:00
Update #48 - Added some features from OptiFine
This commit is contained in:
11
sources/main/java/net/optifine/config/ItemLocator.java
Normal file
11
sources/main/java/net/optifine/config/ItemLocator.java
Normal file
@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user