Class BlockModelWrapper
java.lang.Object
net.minecraft.client.renderer.item.BlockModelWrapper
- All Implemented Interfaces:
ItemModel
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ItemModel
ItemModel.BakingContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final ModelRenderPropertiesprivate final List<ItemTintSource> -
Constructor Summary
ConstructorsConstructorDescriptionBlockModelWrapper(List<ItemTintSource> tints, List<BakedQuad> quads, ModelRenderProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
animated
private final boolean animated
-
-
Constructor Details
-
BlockModelWrapper
public BlockModelWrapper(List<ItemTintSource> tints, List<BakedQuad> quads, ModelRenderProperties properties)
-
-
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
-