mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 06:53:30 +00:00
More sideonly cleanup
This commit is contained in:
1 parent
475f4b63da
commit
a0843d9523
10 files changed
+26
-4
No files matched your search
@@ -23,6 +23,7 @@ import binnie.extratrees.block.WoodManager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -40,6 +41,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
protected void addTabs() {
|
||||
new PageSpeciesOverview(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.overview", 0));
|
||||
new PageSpeciesTreeGenome(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "species.genome", 0));
|
||||
@@ -54,6 +56,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
|
||||
public void createListBox(final Area area) {
|
||||
(this.listBox = new ControlListBox<ItemStack>(this.modePage, area.xPos(), area.yPos(), area.width(), area.height(), 12) {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IWidget createOption(final ItemStack value, final int y) {
|
||||
return new ControlItemStackOption(this.getContent(), value, y);
|
||||
}
|
||||
@@ -65,6 +68,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
|
||||
public void createListBox(final Area area) {
|
||||
(this.listBox = new ControlListBox<ItemStack>(this.modePage, area.xPos(), area.yPos(), area.width(), area.height(), 12) {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IWidget createOption(final ItemStack value, final int y) {
|
||||
return new ControlItemStackOption(this.getContent(), value, y);
|
||||
}
|
||||
@@ -76,6 +80,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
|
||||
public void createListBox(final Area area) {
|
||||
(this.listBox = new ControlListBox<ItemStack>(this.modePage, area.xPos(), area.yPos(), area.width(), area.height(), 12) {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IWidget createOption(final ItemStack value, final int y) {
|
||||
return new ControlItemStackOption(this.getContent(), value, y);
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import binnie.craftgui.mod.database.WindowAbstractDatabase;
|
||||
import binnie.extratrees.ExtraTrees;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class WindowLepidopteristDatabase extends WindowAbstractDatabase {
|
||||
public WindowLepidopteristDatabase(final EntityPlayer player, final Side side, final boolean nei) {
|
||||
@@ -26,6 +27,7 @@ public class WindowLepidopteristDatabase extends WindowAbstractDatabase {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
protected void addTabs() {
|
||||
new PageSpeciesOverview(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.overview", 0));
|
||||
new PageSpeciesClassification(this.getInfoPages(Mode.SPECIES), new DatabaseTab(ExtraTrees.instance, "butterfly.species.classification", 0));
|
||||
|
||||
Reference in new issue
Block a user