Class ItemModels

java.lang.Object
dev.engine_room.vanillin.item.ItemModels

public class ItemModels extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final dev.engine_room.flywheel.lib.util.RendererReloadCache<ItemModels.ItemKey,dev.engine_room.flywheel.api.model.Model>
     
    static final net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static dev.engine_room.flywheel.api.model.Model
     
    static dev.engine_room.flywheel.api.model.Model
    get(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemDisplayContext context)
     
    static net.minecraft.client.resources.model.BakedModel
    getModel(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isSupported(net.minecraft.client.resources.model.BakedModel model)
     
    static boolean
    isSupported(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

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

    • NO_INSTANCING

      public static final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> NO_INSTANCING
    • MODEL_CACHE

      public static final dev.engine_room.flywheel.lib.util.RendererReloadCache<ItemModels.ItemKey,dev.engine_room.flywheel.api.model.Model> MODEL_CACHE
  • Constructor Details

    • ItemModels

      public ItemModels()
  • Method Details

    • get

      public static dev.engine_room.flywheel.api.model.Model get(ItemModels.ItemKey key)
    • get

      public static dev.engine_room.flywheel.api.model.Model get(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemDisplayContext context)
    • isSupported

      public static boolean isSupported(net.minecraft.world.item.ItemStack stack)
    • getModel

      public static net.minecraft.client.resources.model.BakedModel getModel(net.minecraft.world.item.ItemStack stack)
    • isSupported

      public static boolean isSupported(net.minecraft.client.resources.model.BakedModel model)