Class IdRegistryImpl<T>
java.lang.Object
dev.engine_room.flywheel.impl.registry.IdRegistryImpl<T>
- All Implemented Interfaces:
dev.engine_room.flywheel.api.registry.IdRegistry<T>,Iterable<T>
public class IdRegistryImpl<T>
extends Object
implements dev.engine_room.flywheel.api.registry.IdRegistry<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 interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
registerAndGet
- Specified by:
registerAndGetin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
get
- Specified by:
getin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
getId
- Specified by:
getIdin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
getOrThrow
- Specified by:
getOrThrowin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
getIdOrThrow
- Specified by:
getIdOrThrowin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
getAllIds
- Specified by:
getAllIdsin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
getAll
- Specified by:
getAllin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
isFrozen
public boolean isFrozen()- Specified by:
isFrozenin interfacedev.engine_room.flywheel.api.registry.IdRegistry<T>
-
iterator
-
freezeAll
public static void freezeAll()
-