package mcjty.deepresonance.blocks.pedestal;
import mcjty.deepresonance.blocks.GenericDRBlock;
import mcjty.deepresonance.client.ClientHandler;
import mcjty.deepresonance.gui.GuiProxy;
import mcjty.lib.container.GenericGuiContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.lwjgl.input.Keyboard;
import java.util.List;
public class PedestalBlock extends GenericDRBlock<PedestalTileEntity, PedestalContainer> {
public PedestalBlock() {
super(Material.IRON, PedestalTileEntity.class, PedestalContainer.class, "pedestal", false);
}
@SideOnly(Side.CLIENT)
@Override
public Class<? extends GenericGuiContainer> getGuiClass() {
return GuiPedestal.class;
}
@Override
public int getGuiID() {
return GuiProxy.GUI_PEDESTAL;
}
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack itemStack, EntityPlayer player, List<String> list, boolean advancedToolTip) {
super.addInformation(itemStack, player, list, advancedToolTip);
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
list.add("This block can place crystals and pick up spent.");
list.add("crystals");
} else {
list.add(TextFormatting.WHITE + ClientHandler.getShiftMessage());
}
}
}