mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Bells and whistles...
This commit is contained in:
1 parent
9c7da681fc
commit
af85d8d7b6
3 files changed
+31
-8
No files matched your search
@@ -215,17 +215,24 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
|
||||
}
|
||||
|
||||
void back() {
|
||||
if(backButton.enabled)
|
||||
if(backButton.enabled) {
|
||||
actionPerformed(backButton);
|
||||
backButton.func_146113_a(this.mc.getSoundHandler());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void nextPage() {
|
||||
if(rightButton.enabled)
|
||||
if(rightButton.enabled) {
|
||||
actionPerformed(rightButton);
|
||||
rightButton.func_146113_a(this.mc.getSoundHandler());
|
||||
}
|
||||
}
|
||||
|
||||
void prevPage() {
|
||||
if(leftButton.enabled)
|
||||
if(leftButton.enabled) {
|
||||
actionPerformed(leftButton);
|
||||
leftButton.func_146113_a(this.mc.getSoundHandler());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -186,19 +186,25 @@ public class GuiLexiconIndex extends GuiLexicon implements IParented {
|
||||
|
||||
super.keyTyped(par1, par2);
|
||||
}
|
||||
|
||||
|
||||
void back() {
|
||||
if(backButton.enabled)
|
||||
if(backButton.enabled) {
|
||||
actionPerformed(backButton);
|
||||
backButton.func_146113_a(this.mc.getSoundHandler());
|
||||
}
|
||||
}
|
||||
|
||||
void nextPage() {
|
||||
if(rightButton.enabled)
|
||||
if(rightButton.enabled) {
|
||||
actionPerformed(rightButton);
|
||||
rightButton.func_146113_a(this.mc.getSoundHandler());
|
||||
}
|
||||
}
|
||||
|
||||
void prevPage() {
|
||||
if(leftButton.enabled)
|
||||
if(leftButton.enabled) {
|
||||
actionPerformed(leftButton);
|
||||
leftButton.func_146113_a(this.mc.getSoundHandler());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,16 +13,21 @@ package vazkii.botania.common.block.decor;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.core.helper.IconHelper;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.common.block.BlockModContainer;
|
||||
import vazkii.botania.common.block.tile.TileStarfield;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockStarfield extends BlockModContainer {
|
||||
public class BlockStarfield extends BlockModContainer implements ILexiconable {
|
||||
|
||||
IIcon[] icons;
|
||||
|
||||
@@ -63,4 +68,9 @@ public class BlockStarfield extends BlockModContainer {
|
||||
return new TileStarfield();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.starfield;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user