Class RegistryEntries<V>
java.lang.Object
net.darkhax.bookshelf.api.registry.RegistryEntries<V>
- All Implemented Interfaces:
Iterable<V>,IOwnedRegistryEntries<V>,IRegistryEntries<V>
- Direct Known Subclasses:
CommandArgumentRegistryEntries,RecipeTypeEntries
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryEntries(Supplier<String> idProvider, String name) RegistryEntries(Supplier<String> idProvider, net.minecraft.resources.ResourceKey<?> registryKey) -
Method Summary
Modifier and TypeMethodDescription<VT extends V>
IRegistryObject<VT>voidaddInsertListener(BiConsumer<net.minecraft.resources.ResourceLocation, IRegistryObject<? extends V>> listener) voidaddRegistryListener(BiConsumer<net.minecraft.resources.ResourceLocation, V> listener) voidaddRegistryWrapper(BiFunction<net.minecraft.resources.ResourceLocation, V, V> wrapperFunc) voidbuild(BiConsumer<net.minecraft.resources.ResourceLocation, V> registerFunc) getOwner()booleanisEmpty()iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.darkhax.bookshelf.api.registry.IOwnedRegistryEntries
addMethods inherited from interface net.darkhax.bookshelf.api.registry.IRegistryEntries
getEntry, getOrDefault, getOrDefault, ifAbsent, ifPresentMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RegistryEntries
-
RegistryEntries
-
-
Method Details
-
getOwner
- Specified by:
getOwnerin interfaceIOwnedRegistryEntries<V>
-
add
public <VT extends V> IRegistryObject<VT> add(Supplier<VT> value, net.minecraft.resources.ResourceLocation id) - Specified by:
addin interfaceIRegistryEntries<V>
-
getEntries
- Specified by:
getEntriesin interfaceIRegistryEntries<V>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceIRegistryEntries<V>
-
addInsertListener
public void addInsertListener(BiConsumer<net.minecraft.resources.ResourceLocation, IRegistryObject<? extends V>> listener) - Specified by:
addInsertListenerin interfaceIRegistryEntries<V>
-
addRegistryListener
- Specified by:
addRegistryListenerin interfaceIRegistryEntries<V>
-
addRegistryWrapper
public void addRegistryWrapper(BiFunction<net.minecraft.resources.ResourceLocation, V, V> wrapperFunc) - Specified by:
addRegistryWrapperin interfaceIRegistryEntries<V>
-
build
- Specified by:
buildin interfaceIRegistryEntries<V>
-
iterator
-