Also don't need EmcMap (now that we are working on EmcRegistry)
This commit is contained in:
parent
23aae27ee4
commit
ce3f8e4161
1 changed files with 0 additions and 37 deletions
|
@ -1,37 +0,0 @@
|
|||
package com.pahimar.ee3.emc;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.pahimar.ee3.item.CustomWrappedStack;
|
||||
|
||||
public class EmcMap {
|
||||
|
||||
private static EmcMap emcMap = null;
|
||||
|
||||
private HashMap<CustomWrappedStack, EmcValue> emcMappings;
|
||||
|
||||
private EmcMap() {
|
||||
|
||||
emcMappings = new HashMap<CustomWrappedStack, EmcValue>();
|
||||
}
|
||||
|
||||
public static EmcMap getInstance() {
|
||||
|
||||
if (emcMap == null) {
|
||||
emcMap = new EmcMap();
|
||||
}
|
||||
|
||||
return emcMap;
|
||||
}
|
||||
|
||||
public EmcValue getEmcValue(Object object) {
|
||||
|
||||
EmcValue emcValue = null;
|
||||
|
||||
if (CustomWrappedStack.canBeWrapped(object)) {
|
||||
return emcMappings.get(new CustomWrappedStack(object));
|
||||
}
|
||||
|
||||
return emcValue;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue