Class EBDataGenProcessor

java.lang.Object
com.binaris.wizardry.setup.datagen.EBDataGenProcessor

public final class EBDataGenProcessor extends Object
Electroblob's Wizardry Internal Use Only

This is the main class that handles the basic data gen features for the mod we use this to register all the just-one-file or small models with a generic behaviour.

Some of the things that are made here are: items with just a simple texture, block items with a simple model and block states and also register the mods features that are frequently used but have the same behaviour among them, like wand items
  • Method Details

    • addDefaultItem

      public static void addDefaultItem(String name, DeferredObject<? extends net.minecraft.world.item.Item> item)
      Default item with just a png as a model and texture
    • addWandItem

      public static void addWandItem(String name, DeferredObject<? extends net.minecraft.world.item.Item> item)
      Makes a regular wand item with the custom point model
    • addDefaultBlockModel

      public static void addDefaultBlockModel(String name, DeferredObject<net.minecraft.world.level.block.Block> blockModel)
      Makes the block have a normal block item model and block state
    • addDefaultBlockDrop

      public static void addDefaultBlockDrop(String name, DeferredObject<net.minecraft.world.level.block.Block> blockDrop)
      Blocks that should drop itself
    • items

      public static Map<String,DeferredObject<? extends net.minecraft.world.item.Item>> items()
    • wandItems

      public static Map<String,DeferredObject<? extends net.minecraft.world.item.Item>> wandItems()
    • defaultBlockModels

      public static Map<String,DeferredObject<net.minecraft.world.level.block.Block>> defaultBlockModels()
    • defaultBlockDrops

      public static Map<String,DeferredObject<net.minecraft.world.level.block.Block>> defaultBlockDrops()