- All Implemented Interfaces:
Supplier<T>
public class RegistrySupplier<T>
extends Object
implements Supplier<T>
-
Constructor Summary
Constructors
-
Method Summary
boolean
net.minecraft.resources.ResourceLocation
net.minecraft.resources.ResourceKey<T>
int
boolean
void
register(net.minecraft.core.Registry<T> registry)
-
Constructor Details
-
RegistrySupplier
public RegistrySupplier(net.minecraft.resources.ResourceKey<T> id,
Supplier<T> factory)
-
Method Details
-
register
public void register(net.minecraft.core.Registry<T> registry)
-
-
is
public boolean is(T other)
-
getId
public net.minecraft.resources.ResourceLocation getId()
-
getRegistryKey
public net.minecraft.resources.ResourceKey<T> getRegistryKey()
-
-