mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-30 12:11:28 +01:00
Add static NO_TINT TintColorProvider function
This commit is contained in:
parent
bce0ba09b8
commit
60d40e1bfd
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user