Class CuboidItemModelWrapper
java.lang.Object
net.minecraft.client.renderer.item.CuboidItemModelWrapper
- All Implemented Interfaces:
ItemModel
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ItemModel
ItemModel.BakingContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Supplier<org.joml.Vector3fc[]> private final ModelRenderPropertiesprivate final QuadCollectionprivate final List<ItemTintSource> private final org.joml.Matrix4fc -
Constructor Summary
ConstructorsConstructorDescriptionCuboidItemModelWrapper(List<ItemTintSource> tints, QuadCollection quads, ModelRenderProperties properties, org.joml.Matrix4fc transformation) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.joml.Vector3fc[]computeExtents(List<BakedQuad> quads) private static booleanhasSpecialAnimatedTexture(ItemStack itemStack) voidupdate(ItemStackRenderState output, ItemStack item, ItemModelResolver resolver, ItemDisplayContext displayContext, @Nullable ClientLevel level, @Nullable ItemOwner owner, int seed) private static voidvalidateAtlasUsage(List<BakedQuad> quads)
-
Field Details
-
tints
-
quads
-
extents
-
properties
-
transformation
private final org.joml.Matrix4fc transformation
-
-
Constructor Details
-
CuboidItemModelWrapper
public CuboidItemModelWrapper(List<ItemTintSource> tints, QuadCollection quads, ModelRenderProperties properties, org.joml.Matrix4fc transformation)
-
-
Method Details
-
computeExtents
-
update
public void update(ItemStackRenderState output, ItemStack item, ItemModelResolver resolver, ItemDisplayContext displayContext, @Nullable ClientLevel level, @Nullable ItemOwner owner, int seed) -
validateAtlasUsage
-
hasSpecialAnimatedTexture
-