Fixed guis
This commit is contained in:
parent
887708d128
commit
1a580bb1d1
4 changed files with 6 additions and 4 deletions
|
@ -12,7 +12,7 @@ import techreborn.tiles.generator.TileDieselGenerator;
|
||||||
public class GuiDieselGenerator extends GuiContainer {
|
public class GuiDieselGenerator extends GuiContainer {
|
||||||
|
|
||||||
private static final ResourceLocation texture = new ResourceLocation(
|
private static final ResourceLocation texture = new ResourceLocation(
|
||||||
"techreborn", "textures/gui/ThermalGenerator.png");
|
"techreborn", "textures/gui/thermal_generator.png");
|
||||||
|
|
||||||
TileDieselGenerator tile;
|
TileDieselGenerator tile;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import techreborn.tiles.TileDigitalChest;
|
||||||
public class GuiDigitalChest extends GuiContainer {
|
public class GuiDigitalChest extends GuiContainer {
|
||||||
|
|
||||||
private static final ResourceLocation texture = new ResourceLocation(
|
private static final ResourceLocation texture = new ResourceLocation(
|
||||||
"techreborn", "textures/gui/ThermalGenerator.png");
|
"techreborn", "textures/gui/thermal_generator.png");
|
||||||
|
|
||||||
TileDigitalChest tile;
|
TileDigitalChest tile;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import techreborn.tiles.TileQuantumChest;
|
||||||
public class GuiQuantumChest extends GuiContainer {
|
public class GuiQuantumChest extends GuiContainer {
|
||||||
|
|
||||||
private static final ResourceLocation texture = new ResourceLocation(
|
private static final ResourceLocation texture = new ResourceLocation(
|
||||||
"techreborn", "textures/gui/ThermalGenerator.png");
|
"techreborn", "textures/gui/thermal_generator.png");
|
||||||
|
|
||||||
TileQuantumChest tile;
|
TileQuantumChest tile;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package techreborn.utils;
|
package techreborn.utils;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.util.text.TextFormatting;
|
||||||
import net.minecraftforge.event.entity.player.ItemTooltipEvent;
|
import net.minecraftforge.event.entity.player.ItemTooltipEvent;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
import techreborn.init.ModBlocks;
|
import techreborn.init.ModBlocks;
|
||||||
|
@ -19,13 +20,14 @@ public class StackWIPHandler {
|
||||||
wipBlocks.add(ModBlocks.MagicalAbsorber);
|
wipBlocks.add(ModBlocks.MagicalAbsorber);
|
||||||
wipBlocks.add(ModBlocks.ChunkLoader);
|
wipBlocks.add(ModBlocks.ChunkLoader);
|
||||||
wipBlocks.add(ModBlocks.ElectricCraftingTable);
|
wipBlocks.add(ModBlocks.ElectricCraftingTable);
|
||||||
|
wipBlocks.add(ModBlocks.playerDetector);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void toolTip(ItemTooltipEvent event){
|
public void toolTip(ItemTooltipEvent event){
|
||||||
Block block = Block.getBlockFromItem(event.itemStack.getItem());
|
Block block = Block.getBlockFromItem(event.itemStack.getItem());
|
||||||
if(block != null && wipBlocks.contains(block)){
|
if(block != null && wipBlocks.contains(block)){
|
||||||
event.toolTip.add("WIP");
|
event.toolTip.add(TextFormatting.RED + "WIP Coming Soon");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue