Add multiblock tooltips and error game overlay renderer

This commit is contained in:
Nedelosk committed 2017-01-01 04:09:29 +01:00
1 parent 7ff4944281
commit 931e518ca2
10 files changed
+148 -71

No files matched your search

@@ -18,28 +18,35 @@ import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public enum EnumFarmBlockTexture {
BRICK_STONE(new ItemStack(Blocks.STONEBRICK, 1, 0)),
BRICK_MOSSY(new ItemStack(Blocks.STONEBRICK, 1, 1)),
BRICK_CRACKED(new ItemStack(Blocks.STONEBRICK, 1, 2)),
BRICK(new ItemStack(Blocks.BRICK_BLOCK)),
SANDSTONE_SMOOTH(new ItemStack(Blocks.SANDSTONE, 1, 2)),
SANDSTONE_CHISELED(new ItemStack(Blocks.SANDSTONE, 1, 1)),
BRICK_NETHER(new ItemStack(Blocks.NETHER_BRICK)),
BRICK_CHISELED(new ItemStack(Blocks.STONEBRICK, 1, 3)),
QUARTZ(new ItemStack(Blocks.QUARTZ_BLOCK, 1, 0)),
QUARTZ_CHISELED(new ItemStack(Blocks.QUARTZ_BLOCK, 1, 1)),
QUARTZ_LINES(new ItemStack(Blocks.QUARTZ_BLOCK, 1, 2));
BRICK_STONE(new ItemStack(Blocks.STONEBRICK, 1, 0), TextFormatting.DARK_GRAY),
BRICK_MOSSY(new ItemStack(Blocks.STONEBRICK, 1, 1), TextFormatting.DARK_GRAY),
BRICK_CRACKED(new ItemStack(Blocks.STONEBRICK, 1, 2), TextFormatting.DARK_GRAY),
BRICK(new ItemStack(Blocks.BRICK_BLOCK), TextFormatting.GOLD),
SANDSTONE_SMOOTH(new ItemStack(Blocks.SANDSTONE, 1, 2), TextFormatting.YELLOW),
SANDSTONE_CHISELED(new ItemStack(Blocks.SANDSTONE, 1, 1), TextFormatting.YELLOW),
BRICK_NETHER(new ItemStack(Blocks.NETHER_BRICK), TextFormatting.DARK_RED),
BRICK_CHISELED(new ItemStack(Blocks.STONEBRICK, 1, 3), TextFormatting.GOLD),
QUARTZ(new ItemStack(Blocks.QUARTZ_BLOCK, 1, 0), TextFormatting.WHITE),
QUARTZ_CHISELED(new ItemStack(Blocks.QUARTZ_BLOCK, 1, 1), TextFormatting.WHITE),
QUARTZ_LINES(new ItemStack(Blocks.QUARTZ_BLOCK, 1, 2), TextFormatting.WHITE);
private final ItemStack base;
private final TextFormatting formatting;
EnumFarmBlockTexture(ItemStack base) {
EnumFarmBlockTexture(ItemStack base, TextFormatting formatting) {
this.base = base;
this.formatting = formatting;
}
public TextFormatting getFormatting() {
return formatting;
}
/**
* @return The texture sprite from the material of the farm block
*/