use of net.minecraft.item.ItemMap in project UtilityClient2 by Utility-Client.
the class EntityItemFrame method removeFrameFromMap.
/**
* Removes the dot representing this frame's position from the map when the item frame is broken.
*/
private void removeFrameFromMap(ItemStack p_110131_1_) {
if (p_110131_1_ != null) {
if (p_110131_1_.getItem() == Items.filled_map) {
MapData mapdata = ((ItemMap) p_110131_1_.getItem()).getMapData(p_110131_1_, this.worldObj);
mapdata.mapDecorations.remove("frame-" + this.getEntityId());
}
p_110131_1_.setItemFrame((EntityItemFrame) null);
}
}
Aggregations