Package net.minecraft.util
Class RegistryNamespacedDefaultedByKey<K,V>
- java.lang.Object
-
- net.minecraft.util.RegistrySimple<K,V>
-
- net.minecraft.util.RegistryNamespaced<K,V>
-
- net.minecraft.util.RegistryNamespacedDefaultedByKey<K,V>
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,IObjectIntIterable<V>
,IRegistry<K,V>
public class RegistryNamespacedDefaultedByKey<K,V> extends RegistryNamespaced<K,V>
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.util.RegistryNamespaced
inverseObjectRegistry, underlyingIntegerMap
-
Fields inherited from class net.minecraft.util.RegistrySimple
registryObjects
-
-
Constructor Summary
Constructors Constructor Description RegistryNamespacedDefaultedByKey(K parObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getObject(K name)
V
getObjectById(int id)
+ Gets the object identified by the given ID.void
register(int id, K parObject, V parObject2)
void
validateKey()
+ validates that this registry's key is non-null-
Methods inherited from class net.minecraft.util.RegistryNamespaced
containsKey, createUnderlyingMap, getIDForObject, getNameForObject, iterator
-
Methods inherited from class net.minecraft.util.RegistrySimple
getKeys, putObject
-
-
-
-
Constructor Detail
-
RegistryNamespacedDefaultedByKey
public RegistryNamespacedDefaultedByKey(K parObject)
-
-
Method Detail
-
register
public void register(int id, K parObject, V parObject2)
- Overrides:
register
in classRegistryNamespaced<K,V>
-
validateKey
public void validateKey()
+ validates that this registry's key is non-null
-
getObjectById
public V getObjectById(int id)
+ Gets the object identified by the given ID.- Overrides:
getObjectById
in classRegistryNamespaced<K,V>
-
-