Package dan200.computercraft.api.client
Class TransformedModel
java.lang.Object
dan200.computercraft.api.client.TransformedModel
A model to render, combined with a transformation matrix to apply.
-
Constructor Summary
ConstructorsConstructorDescriptionTransformedModel
(net.minecraft.client.resources.model.BakedModel model) TransformedModel
(net.minecraft.client.resources.model.BakedModel model, com.mojang.math.Transformation matrix) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.math.Transformation
net.minecraft.client.resources.model.BakedModel
getModel()
static TransformedModel
of
(net.minecraft.client.resources.model.ModelResourceLocation location) static TransformedModel
of
(net.minecraft.resources.ResourceLocation location) static TransformedModel
of
(net.minecraft.world.item.ItemStack item, com.mojang.math.Transformation transform)
-
Constructor Details
-
TransformedModel
public TransformedModel(net.minecraft.client.resources.model.BakedModel model, com.mojang.math.Transformation matrix) -
TransformedModel
public TransformedModel(net.minecraft.client.resources.model.BakedModel model)
-
-
Method Details
-
of
public static TransformedModel of(net.minecraft.client.resources.model.ModelResourceLocation location) -
of
-
of
public static TransformedModel of(net.minecraft.world.item.ItemStack item, com.mojang.math.Transformation transform) -
getModel
public net.minecraft.client.resources.model.BakedModel getModel() -
getMatrix
public com.mojang.math.Transformation getMatrix()
-