use of net.minecraftforge.registries.RegistryBuilder in project Bookshelf by Darkhax-Minecraft.
the class ForgeRegistryRegistryHelper method register.
public <T extends IForgeRegistryEntry<T>> RegistryBuilder<T> register(String id, Class<T> type) {
final ResourceLocation registryId = new ResourceLocation(this.ownerId, id);
final RegistryBuilder<T> builder = new RegistryBuilder<T>().setName(registryId).setType(type);
this.registries.put(registryId, builder);
return builder;
}
Aggregations