public class ClearableRegistry<V> extends java.lang.Object implements IRegistry<V>
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 |
---|
ClearableRegistry(ResourceLocation name) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
func_212607_c(ResourceLocation key) |
V |
func_212608_b(ResourceLocation key) |
ResourceLocation |
func_212609_b() |
V |
get(int id) |
V |
get(ResourceLocation key) |
int |
getId(V value) |
ResourceLocation |
getKey(V value) |
java.util.Set<ResourceLocation> |
getKeys() |
int |
getNextId() |
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
public ClearableRegistry(ResourceLocation name)
@Nullable public ResourceLocation getKey(V value)
public V get(ResourceLocation key)
public ResourceLocation func_212609_b()
func_212609_b
in interface IRegistry<V>
public java.util.Iterator<V> iterator()
@Nullable public V func_212608_b(ResourceLocation key)
func_212608_b
in interface IRegistry<V>
public void register(int id, ResourceLocation key, V value)
public void put(ResourceLocation key, V value)
public java.util.Set<ResourceLocation> getKeys()
@Nullable public V getRandom(java.util.Random random)
public boolean func_212607_c(ResourceLocation key)
func_212607_c
in interface IRegistry<V>
public void clear()
public int getNextId()