Search in sources :

Example 1 with HoneycombType

use of com.teamresourceful.resourcefulbees.lib.enums.HoneycombType in project ResourcefulBees by Resourceful-Bees.

the class ModelHandler method registerModels.

// endregion
public static void registerModels(ModelRegistryEvent event) {
    ResourceManager resourceManager = Minecraft.getInstance().getResourceManager();
    BeeRegistry.getRegistry().getBees().forEach((s, beeData) -> {
        HoneycombType honeycombType = beeData.getHoneycombData().getHoneycombType();
        if (honeycombType.equals(HoneycombType.DEFAULT)) {
            registerHoneycombBlockState(s, resourceManager);
            registerHoneycombBlockItem(s, resourceManager);
            registerHoneycombItem(s, resourceManager);
        }
        registerBeeSpawnEgg(s, resourceManager);
    });
    HoneyRegistry.getRegistry().getHoneyBottles().forEach((string, honeyData) -> {
        registerHoneyFluid(honeyData);
        registerHoneyBottleItem(honeyData, resourceManager);
        registerHoneyBlockItem(honeyData, resourceManager);
        registerHoneyBucketItem(honeyData, resourceManager);
        registerHoneyBlock(honeyData, resourceManager);
    });
}
Also used : HoneycombType(com.teamresourceful.resourcefulbees.lib.enums.HoneycombType) ResourceManager(net.minecraft.server.packs.resources.ResourceManager)

Aggregations

HoneycombType (com.teamresourceful.resourcefulbees.lib.enums.HoneycombType)1 ResourceManager (net.minecraft.server.packs.resources.ResourceManager)1