Class IdRegistryImpl<T>
java.lang.Object
dev.engine_room.flywheel.impl.registry.IdRegistryImpl<T>
- All Implemented Interfaces:
IdRegistry<T>,Iterable<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidget(net.minecraft.resources.ResourceLocation id) @UnmodifiableView Collection<T>getAll()@UnmodifiableView Set<net.minecraft.resources.ResourceLocation>@Nullable net.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationgetIdOrThrow(T object) getOrThrow(net.minecraft.resources.ResourceLocation id) booleanisFrozen()iterator()void<S extends T>
SregisterAndGet(net.minecraft.resources.ResourceLocation id, S object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IdRegistryImpl
public IdRegistryImpl()
-
-
Method Details
-
register
- Specified by:
registerin interfaceIdRegistry<T>
-
registerAndGet
- Specified by:
registerAndGetin interfaceIdRegistry<T>
-
get
- Specified by:
getin interfaceIdRegistry<T>
-
getId
- Specified by:
getIdin interfaceIdRegistry<T>
-
getOrThrow
- Specified by:
getOrThrowin interfaceIdRegistry<T>
-
getIdOrThrow
- Specified by:
getIdOrThrowin interfaceIdRegistry<T>
-
getAllIds
- Specified by:
getAllIdsin interfaceIdRegistry<T>
-
getAll
- Specified by:
getAllin interfaceIdRegistry<T>
-
isFrozen
public boolean isFrozen()- Specified by:
isFrozenin interfaceIdRegistry<T>
-
iterator
-
freezeAll
public static void freezeAll()
-