ModelUtil

public final class ModelUtil

Properties

Link copied to clipboard
private final static Sprite missingSprite

Gets the missing sprite from the block atlas.

Link copied to clipboard

The transform of an item in the default position of the staff.

Functions

Link copied to clipboard
public final static List<BakedQuad> getBakedQuads(ModelPart $self, Sprite sprite)
public final static List<BakedQuad> getBakedQuads(ModelPart $self, Sprite sprite, Transformation transformation)
public final static List<BakedQuad> getBakedQuads(ModelPart $self, Sprite sprite, Transformation transformation, Integer luminance)
public final static Unit getBakedQuads(ModelPart $self, Consumer<BakedQuad> bakedQuadConsumer, Sprite sprite)
public final static Unit getBakedQuads(ModelPart $self, Consumer<BakedQuad> bakedQuadConsumer, Sprite sprite, Transformation transformation)
public final static Unit getBakedQuads(ModelPart $self, Consumer<BakedQuad> bakedQuadConsumer, Sprite sprite, Transformation transformation, Integer luminance)

Renders the model to BakedQuads.

Link copied to clipboard
public final Sprite getMissingSprite()
Link copied to clipboard
public final static BakedModel getTransformedModel(BlockState $self, Transformation transformation)

Creates a transformed model based on the model of the block state.

Link copied to clipboard
public final static BakedModel transform(BakedModel $self, BlockState blockState, Transformation transformation)

Creates a new transformed model.