Search in sources :

Example 6 with MapState

use of net.minecraft.item.map.MapState in project Client by MatHax.

the class SaveMapCommand method getMapState.

private MapState getMapState() {
    ItemStack map = getMap();
    if (map == null)
        return null;
    MapState state = FilledMapItem.getMapState(FilledMapItem.getMapId(map), mc.world);
    if (state == null)
        return null;
    return state;
}
Also used : MapState(net.minecraft.item.map.MapState) ItemStack(net.minecraft.item.ItemStack)

Aggregations

MapState (net.minecraft.item.map.MapState)6 VertexConsumerProvider (net.minecraft.client.render.VertexConsumerProvider)4 ItemStack (net.minecraft.item.ItemStack)3 GameRenderer (net.minecraft.client.render.GameRenderer)2 MinecraftClient (net.minecraft.client.MinecraftClient)1 MapRenderer (net.minecraft.client.render.MapRenderer)1 VertexConsumer (net.minecraft.client.render.VertexConsumer)1 NbtCompound (net.minecraft.nbt.NbtCompound)1 Matrix4f (net.minecraft.util.math.Matrix4f)1