Add static NO_TINT TintColorProvider function

This commit is contained in:
Lukas Rieger (Blue) 2025-01-22 14:31:42 +01:00
parent bce0ba09b8
commit 60d40e1bfd
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -83,7 +83,7 @@ public void render(Entity entity, BlockNeighborhood block, Part part, TileModelV
entity, entity,
block, block,
part.getModel().getResource(resourcePack::getModel), part.getModel().getResource(resourcePack::getModel),
(index, color) -> color.set(1f, 1f, 1f, 1f, true), TintColorProvider.NO_TINT,
tileModel tileModel
); );
@ -250,6 +250,7 @@ private void createElementFace(Element element, Direction faceDir, VectorM3f c0,
} }
interface TintColorProvider { interface TintColorProvider {
TintColorProvider NO_TINT = (index, color) -> color.set(1f, 1f, 1f, 1f, true);
void setTintColor(int tintIndex, Color target); void setTintColor(int tintIndex, Color target);
} }