Search in sources :

Example 1 with RegistryBuilder

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;
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) RegistryBuilder(net.minecraftforge.registries.RegistryBuilder)

Aggregations

ResourceLocation (net.minecraft.util.ResourceLocation)1 RegistryBuilder (net.minecraftforge.registries.RegistryBuilder)1