Class ItemModelGenerator

java.lang.Object
net.minecraftforge.client.model.generators.ModelProvider<net.minecraftforge.client.model.generators.ItemModelBuilder>
net.minecraftforge.client.model.generators.ItemModelProvider
de.teamlapen.lib.lib.data.BaseItemModelGenerator
de.teamlapen.werewolves.data.ItemModelGenerator
All Implemented Interfaces:
net.minecraft.data.DataProvider

public class ItemModelGenerator extends de.teamlapen.lib.lib.data.BaseItemModelGenerator
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider

    net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider>
  • Field Summary

    Fields inherited from class net.minecraftforge.client.model.generators.ModelProvider

    BLOCK_FOLDER, existingFileHelper, factory, folder, generatedModels, ITEM_FOLDER, MODEL, MODEL_WITH_EXTENSION, modid, output, TEXTURE

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemModelGenerator(@NotNull net.minecraft.data.PackOutput packOutput, @NotNull net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.client.model.generators.ItemModelBuilder
    block(@NotNull net.minecraft.world.level.block.Block name)
     
    net.minecraftforge.client.model.generators.ItemModelBuilder
    blockLayer(@NotNull net.minecraft.world.level.block.Block item, net.minecraft.resources.ResourceLocation @NotNull ... texture)
     
    @NotNull String
     
    net.minecraftforge.client.model.generators.ItemModelBuilder
    item(@NotNull net.minecraft.world.item.Item item, String parent, net.minecraft.resources.ResourceLocation @NotNull ... texture)
     
    net.minecraftforge.client.model.generators.ItemModelBuilder
    item(@NotNull net.minecraft.world.item.Item item, net.minecraft.resources.ResourceLocation... texture)
     
    net.minecraftforge.client.model.generators.ItemModelBuilder
    item(String item, net.minecraft.resources.ResourceLocation @NotNull ... texture)
     
    protected void
     
    @NotNull net.minecraftforge.client.model.generators.ItemModelBuilder
    withExistingParent(@NotNull net.minecraft.world.item.Item name, @NotNull net.minecraft.world.item.Item parent)
     
    @NotNull net.minecraftforge.client.model.generators.ItemModelBuilder
    withExistingParent(@NotNull net.minecraft.world.item.Item name, net.minecraft.resources.ResourceLocation parent)
     
    @NotNull net.minecraftforge.client.model.generators.ItemModelBuilder
    withExistingParent(@NotNull net.minecraft.world.level.block.Block name, net.minecraft.resources.ResourceLocation parent)
     

    Methods inherited from class de.teamlapen.lib.lib.data.BaseItemModelGenerator

    block, item

    Methods inherited from class net.minecraftforge.client.model.generators.ItemModelProvider

    basicItem, basicItem

    Methods inherited from class net.minecraftforge.client.model.generators.ModelProvider

    button, buttonInventory, buttonPressed, carpet, clear, crop, cross, cube, cubeAll, cubeBottomTop, cubeColumn, cubeColumnHorizontal, cubeTop, doorBottomLeft, doorBottomLeftOpen, doorBottomRight, doorBottomRightOpen, doorTopLeft, doorTopLeftOpen, doorTopRight, doorTopRightOpen, fenceGate, fenceGateOpen, fenceGateWall, fenceGateWallOpen, fenceInventory, fencePost, fenceSide, generateAll, getBuilder, getExistingFile, getPath, mcLoc, modLoc, nested, orientable, orientableVertical, orientableWithBottom, paneNoSide, paneNoSideAlt, panePost, paneSide, paneSideAlt, pressurePlate, pressurePlateDown, run, sign, singleTexture, singleTexture, slab, slabTop, stairs, stairsInner, stairsOuter, torch, torchWall, trapdoorBottom, trapdoorOpen, trapdoorOrientableBottom, trapdoorOrientableOpen, trapdoorOrientableTop, trapdoorTop, wallInventory, wallPost, wallSide, wallSideTall, withExistingParent, withExistingParent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemModelGenerator

      public ItemModelGenerator(@NotNull @NotNull net.minecraft.data.PackOutput packOutput, @NotNull @NotNull net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
  • Method Details

    • registerModels

      protected void registerModels()
      Specified by:
      registerModels in class net.minecraftforge.client.model.generators.ModelProvider<net.minecraftforge.client.model.generators.ItemModelBuilder>
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface net.minecraft.data.DataProvider
      Overrides:
      getName in class de.teamlapen.lib.lib.data.BaseItemModelGenerator
    • item

      public net.minecraftforge.client.model.generators.ItemModelBuilder item(String item, net.minecraft.resources.ResourceLocation @NotNull ... texture)
      Overrides:
      item in class de.teamlapen.lib.lib.data.BaseItemModelGenerator
    • item

      public net.minecraftforge.client.model.generators.ItemModelBuilder item(@NotNull @NotNull net.minecraft.world.item.Item item, net.minecraft.resources.ResourceLocation... texture)
      Overrides:
      item in class de.teamlapen.lib.lib.data.BaseItemModelGenerator
    • item

      public net.minecraftforge.client.model.generators.ItemModelBuilder item(@NotNull @NotNull net.minecraft.world.item.Item item, String parent, net.minecraft.resources.ResourceLocation @NotNull ... texture)
    • blockLayer

      public net.minecraftforge.client.model.generators.ItemModelBuilder blockLayer(@NotNull @NotNull net.minecraft.world.level.block.Block item, net.minecraft.resources.ResourceLocation @NotNull ... texture)
    • withExistingParent

      @NotNull public @NotNull net.minecraftforge.client.model.generators.ItemModelBuilder withExistingParent(@NotNull @NotNull net.minecraft.world.item.Item name, net.minecraft.resources.ResourceLocation parent)
      Overrides:
      withExistingParent in class de.teamlapen.lib.lib.data.BaseItemModelGenerator
    • withExistingParent

      @NotNull public @NotNull net.minecraftforge.client.model.generators.ItemModelBuilder withExistingParent(@NotNull @NotNull net.minecraft.world.item.Item name, @NotNull @NotNull net.minecraft.world.item.Item parent)
      Overrides:
      withExistingParent in class de.teamlapen.lib.lib.data.BaseItemModelGenerator
    • withExistingParent

      @NotNull public @NotNull net.minecraftforge.client.model.generators.ItemModelBuilder withExistingParent(@NotNull @NotNull net.minecraft.world.level.block.Block name, net.minecraft.resources.ResourceLocation parent)
      Overrides:
      withExistingParent in class de.teamlapen.lib.lib.data.BaseItemModelGenerator
    • block

      public net.minecraftforge.client.model.generators.ItemModelBuilder block(@NotNull @NotNull net.minecraft.world.level.block.Block name)
      Overrides:
      block in class de.teamlapen.lib.lib.data.BaseItemModelGenerator