Package dev.engine_room.vanillin.item
Class ItemModels
java.lang.Object
dev.engine_room.vanillin.item.ItemModels
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.engine_room.flywheel.lib.util.RendererReloadCache<ItemModels.ItemKey, dev.engine_room.flywheel.api.model.Model> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic dev.engine_room.flywheel.api.model.Modelget(ItemModels.ItemKey key) static dev.engine_room.flywheel.api.model.Modelget(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemDisplayContext context) static net.minecraft.client.resources.model.BakedModelgetModel(net.minecraft.world.item.ItemStack stack) static booleanisSupported(net.minecraft.client.resources.model.BakedModel model) static booleanisSupported(net.minecraft.world.entity.item.ItemEntity entity) static booleanisSupported(net.minecraft.world.item.ItemStack stack)
-
Field Details
-
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
-
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.entity.item.ItemEntity entity) -
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)
-