public class RegistryNamespaced<V> extends java.lang.Object implements IRegistry<V>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
LOGGER |
protected com.google.common.collect.BiMap<ResourceLocation,V> |
registryObjects |
protected IntIdentityHashBiMap<V> |
underlyingIntegerMap |
protected java.lang.Object[] |
values |
field_212616_e, field_212617_f, field_212618_g, field_212619_h, field_212620_i, field_212621_j, field_212622_k, field_212623_l, field_212624_m, field_212625_n, field_212626_o, field_212627_p, field_212628_q, field_212629_r, field_212630_s, field_212631_t, field_212632_u, field_212633_v, field_212634_w
Constructor and Description |
---|
RegistryNamespaced() |
Modifier and Type | Method and Description |
---|---|
boolean |
func_212607_c(ResourceLocation p_212607_1_) |
V |
func_212608_b(ResourceLocation p_212608_1_) |
ResourceLocation |
func_212609_b() |
V |
get(int id) |
V |
get(ResourceLocation name) |
int |
getId(V value) |
ResourceLocation |
getKey(V value) |
java.util.Set<ResourceLocation> |
getKeys() |
V |
getRandom(java.util.Random random) |
boolean |
isEmpty() |
java.util.Iterator<V> |
iterator() |
void |
put(ResourceLocation key,
V value) |
void |
register(int id,
ResourceLocation key,
V value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_212610_a, func_212613_e, stream
protected static final org.apache.logging.log4j.Logger LOGGER
protected final IntIdentityHashBiMap<V> underlyingIntegerMap
protected final com.google.common.collect.BiMap<ResourceLocation,V> registryObjects
protected java.lang.Object[] values
public void register(int id, ResourceLocation key, V value)
public void put(ResourceLocation key, V value)
@Nullable public ResourceLocation getKey(V value)
public V get(@Nullable ResourceLocation name)
public ResourceLocation func_212609_b()
func_212609_b
in interface IRegistry<V>
public java.util.Iterator<V> iterator()
@Nullable public V func_212608_b(@Nullable ResourceLocation p_212608_1_)
func_212608_b
in interface IRegistry<V>
public java.util.Set<ResourceLocation> getKeys()
@Nullable public V getRandom(java.util.Random random)
public boolean func_212607_c(ResourceLocation p_212607_1_)
func_212607_c
in interface IRegistry<V>