- All Superinterfaces:
Supplier<T>
public interface RegistrySupplier<T>
extends Supplier<T>
-
Method Summary
net.minecraft.resources.ResourceLocation
net.minecraft.resources.ResourceLocation
default void
default void
boolean
Methods inherited from interface java.util.function.Supplier
get
-
Method Details
-
getRegistryId
net.minecraft.resources.ResourceLocation getRegistryId()
- Returns:
- the identifier of the registry
-
getId
net.minecraft.resources.ResourceLocation getId()
- Returns:
- the identifier of the entry
-
isPresent
boolean isPresent()
- Returns:
- whether the entry has been registered
-
getOrNull
@Nullable
default T getOrNull()
-
-
ifPresent
default void ifPresent(Consumer<? super T> action)
-
-
-
orElse
default T orElse(T other)
-
orElseGet
default T orElseGet(Supplier<? extends T> supplier)