Package codechicken.lib.render.item.map
Interface IMapRenderer
public interface IMapRenderer
Used to handle rendering FirstPerson items the same as a map.
Created by covers1624 on 15/02/2017.
-
Method Summary
Modifier and TypeMethodDescriptionvoidrenderMap(net.minecraft.world.item.ItemStack stack, boolean inFrame) If this is called you are expected to do something.booleanshouldHandle(net.minecraft.world.item.ItemStack stack, boolean inFrame) If the IMapRenderer should handle rendering the data from this map.
-
Method Details
-
shouldHandle
boolean shouldHandle(net.minecraft.world.item.ItemStack stack, boolean inFrame) If the IMapRenderer should handle rendering the data from this map.- Parameters:
stack- The ItemStack to render map data from.inFrame- If the ItemStack is inside an ItemFrame.- Returns:
- Should this IMapRenderer handle with this context.
-
renderMap
void renderMap(net.minecraft.world.item.ItemStack stack, boolean inFrame) If this is called you are expected to do something. This is ONLY called if shouldHandle returns true.- Parameters:
stack- The ItemStack to render the map data from.inFrame- If the ItemStack is inside an ItemFrame.
-