@Environment(value=CLIENT) public class MapRenderer extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
(package private) class |
MapRenderer.MapTexture |
Modifier and Type | Field and Description |
---|---|
private static RenderLayer |
field_21688 |
private static Identifier |
MAP_ICONS_TEXTURE |
private Map<String,MapRenderer.MapTexture> |
mapTextures |
private TextureManager |
textureManager |
Constructor and Description |
---|
MapRenderer(TextureManager textureManager) |
Modifier and Type | Method and Description |
---|---|
void |
clearStateTextures() |
void |
close() |
void |
draw(MatrixStack matrixStack,
VertexConsumerProvider vertexConsumerProvider,
MapState mapState,
boolean bool,
int int2) |
private MapRenderer.MapTexture |
getMapTexture(MapState mapState) |
MapState |
getState(MapRenderer.MapTexture texture) |
MapRenderer.MapTexture |
getTexture(String string) |
void |
updateTexture(MapState mapState) |
private static final Identifier MAP_ICONS_TEXTURE
private static final RenderLayer field_21688
private final TextureManager textureManager
private final Map<String,MapRenderer.MapTexture> mapTextures
public MapRenderer(TextureManager textureManager)
public void updateTexture(MapState mapState)
public void draw(MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, MapState mapState, boolean bool, int int2)
private MapRenderer.MapTexture getMapTexture(MapState mapState)
@Nullable public MapRenderer.MapTexture getTexture(String string)
public void clearStateTextures()
@Nullable public MapState getState(@Nullable MapRenderer.MapTexture texture)
public void close()
close
in interface AutoCloseable