public class ForgeRegistry<V extends IForgeRegistryEntry<V>> extends java.lang.Object implements IForgeRegistryInternal<V>, IForgeRegistryModifiable<V>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ForgeRegistry.Snapshot |
IForgeRegistry.AddCallback<V extends IForgeRegistryEntry<V>>, IForgeRegistry.BakeCallback<V extends IForgeRegistryEntry<V>>, IForgeRegistry.ClearCallback<V extends IForgeRegistryEntry<V>>, IForgeRegistry.CreateCallback<V extends IForgeRegistryEntry<V>>, IForgeRegistry.DummyFactory<V extends IForgeRegistryEntry<V>>, IForgeRegistry.MissingFactory<V extends IForgeRegistryEntry<V>>, IForgeRegistry.ValidateCallback<V extends IForgeRegistryEntry<V>>| 修飾子とタイプ | フィールドと説明 |
|---|---|
static org.apache.logging.log4j.Marker |
REGISTRIES |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
bake() |
void |
clear() |
boolean |
containsKey(ResourceLocation key) |
boolean |
containsValue(V value) |
void |
freeze()
Used to control the times where people can modify this registry.
|
ResourceLocation |
getDefaultKey() |
java.util.Set<java.util.Map.Entry<ResourceLocation,V>> |
getEntries() |
int |
getID(ResourceLocation name) |
int |
getID(V value) |
ResourceLocation |
getKey(V value) |
java.util.Set<ResourceLocation> |
getKeys() |
RegistryEvent.MissingMappings<?> |
getMissingEvent(ResourceLocation name,
java.util.Map<ResourceLocation,java.lang.Integer> map) |
V |
getRaw(ResourceLocation key) |
ResourceLocation |
getRegistryName() |
java.lang.Class<V> |
getRegistrySuperType() |
<T> T |
getSlaveMap(ResourceLocation name,
java.lang.Class<T> type)
Retrieve the slave map of type T from the registry.
|
V |
getValue(int id) |
V |
getValue(ResourceLocation key) |
java.util.Collection<V> |
getValues() |
boolean |
isEmpty() |
boolean |
isLocked() |
java.util.Iterator<V> |
iterator() |
void |
loadIds(java.util.Map<ResourceLocation,java.lang.Integer> ids,
java.util.Map<ResourceLocation,java.lang.String> overrides,
java.util.Map<ResourceLocation,java.lang.Integer> missing,
java.util.Map<ResourceLocation,java.lang.Integer[]> remapped,
ForgeRegistry<V> old,
ResourceLocation name) |
ForgeRegistry.Snapshot |
makeSnapshot() |
void |
register(V value) |
void |
registerAll(V... values) |
V |
remove(ResourceLocation key) |
void |
setSlaveMap(ResourceLocation name,
java.lang.Object obj) |
void |
unfreeze() |
public void register(V value)
register インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public java.util.Iterator<V> iterator()
iterator インタフェース内 java.lang.Iterable<V extends IForgeRegistryEntry<V>>public ResourceLocation getRegistryName()
getRegistryName インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public java.lang.Class<V> getRegistrySuperType()
getRegistrySuperType インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public void registerAll(V... values)
registerAll インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public boolean containsKey(ResourceLocation key)
containsKey インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public boolean containsValue(V value)
containsValue インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public boolean isEmpty()
isEmpty インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public V getValue(ResourceLocation key)
getValue インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public ResourceLocation getKey(V value)
getKey インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public java.util.Set<ResourceLocation> getKeys()
getKeys インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>@Nonnull public java.util.Collection<V> getValues()
getValues インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public java.util.Set<java.util.Map.Entry<ResourceLocation,V>> getEntries()
getEntries インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public <T> T getSlaveMap(ResourceLocation name, java.lang.Class<T> type)
IForgeRegistrygetSlaveMap インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>T - Type to returnname - The name of the slavemaptype - The typepublic void setSlaveMap(ResourceLocation name, java.lang.Object obj)
setSlaveMap インタフェース内 IForgeRegistryInternal<V extends IForgeRegistryEntry<V>>public int getID(V value)
public int getID(ResourceLocation name)
public V getValue(int id)
@Nullable public ResourceLocation getDefaultKey()
getDefaultKey インタフェース内 IForgeRegistry<V extends IForgeRegistryEntry<V>>public V getRaw(ResourceLocation key)
public void bake()
public void clear()
clear インタフェース内 IForgeRegistryModifiable<V extends IForgeRegistryEntry<V>>public V remove(ResourceLocation key)
remove インタフェース内 IForgeRegistryModifiable<V extends IForgeRegistryEntry<V>>public boolean isLocked()
isLocked インタフェース内 IForgeRegistryModifiable<V extends IForgeRegistryEntry<V>>public void freeze()
public void unfreeze()
public void loadIds(java.util.Map<ResourceLocation,java.lang.Integer> ids, java.util.Map<ResourceLocation,java.lang.String> overrides, java.util.Map<ResourceLocation,java.lang.Integer> missing, java.util.Map<ResourceLocation,java.lang.Integer[]> remapped, ForgeRegistry<V> old, ResourceLocation name)
public ForgeRegistry.Snapshot makeSnapshot()
public RegistryEvent.MissingMappings<?> getMissingEvent(ResourceLocation name, java.util.Map<ResourceLocation,java.lang.Integer> map)