mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 11:29:23 +00:00
Update buildscript & spotlessApply
This commit is contained in:
1 parent
e4329e2b8f
commit
8683a345c3
818 files changed
+51123
-49403
No files matched your search
@@ -19,52 +19,56 @@ import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class WindowAlvearyMutator extends Window {
|
||||
protected Machine machine;
|
||||
protected ControlPlayerInventory playerInventory;
|
||||
protected Machine machine;
|
||||
protected ControlPlayerInventory playerInventory;
|
||||
|
||||
public WindowAlvearyMutator(EntityPlayer player, IInventory inventory, Side side) {
|
||||
super(176.0f, 176.0f, player, inventory, side);
|
||||
machine = ((TileEntityMachine) inventory).getMachine();
|
||||
}
|
||||
public WindowAlvearyMutator(EntityPlayer player, IInventory inventory, Side side) {
|
||||
super(176.0f, 176.0f, player, inventory, side);
|
||||
machine = ((TileEntityMachine) inventory).getMachine();
|
||||
}
|
||||
|
||||
public static Window create(EntityPlayer player, IInventory inventory, Side side) {
|
||||
if (player == null || inventory == null) {
|
||||
return null;
|
||||
}
|
||||
return new WindowAlvearyMutator(player, inventory, side);
|
||||
}
|
||||
public static Window create(EntityPlayer player, IInventory inventory, Side side) {
|
||||
if (player == null || inventory == null) {
|
||||
return null;
|
||||
}
|
||||
return new WindowAlvearyMutator(player, inventory, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialiseClient() {
|
||||
setTitle(I18N.localise("extrabees.machine.alveay.mutator"));
|
||||
playerInventory = new ControlPlayerInventory(this);
|
||||
ControlSlot slot = new ControlSlot(this, 79.0f, 30.0f);
|
||||
slot.assign(AlvearyMutator.SLOT_MUTATOR);
|
||||
new ControlText(this, new IArea(0.0f, 52.0f, w(), 16.0f), I18N.localise("extrabees.machine.alveay.mutator.mutagens"), TextJustification.MIDDLE_CENTER)
|
||||
.setColor(0x555555);
|
||||
int size = AlvearyMutator.getMutagens().size();
|
||||
int w = size * 18;
|
||||
@Override
|
||||
public void initialiseClient() {
|
||||
setTitle(I18N.localise("extrabees.machine.alveay.mutator"));
|
||||
playerInventory = new ControlPlayerInventory(this);
|
||||
ControlSlot slot = new ControlSlot(this, 79.0f, 30.0f);
|
||||
slot.assign(AlvearyMutator.SLOT_MUTATOR);
|
||||
new ControlText(
|
||||
this,
|
||||
new IArea(0.0f, 52.0f, w(), 16.0f),
|
||||
I18N.localise("extrabees.machine.alveay.mutator.mutagens"),
|
||||
TextJustification.MIDDLE_CENTER)
|
||||
.setColor(0x555555);
|
||||
int size = AlvearyMutator.getMutagens().size();
|
||||
int w = size * 18;
|
||||
|
||||
if (size <= 0) {
|
||||
return;
|
||||
}
|
||||
if (size <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
float x = (w() - w) / 2.0f;
|
||||
for (ItemStack stack : AlvearyMutator.getMutagens()) {
|
||||
ControlItemDisplay display = new ControlItemDisplay(this, x, 66.0f);
|
||||
display.setItemStack(stack);
|
||||
display.hastooltip = true;
|
||||
x += 18.0f;
|
||||
}
|
||||
}
|
||||
float x = (w() - w) / 2.0f;
|
||||
for (ItemStack stack : AlvearyMutator.getMutagens()) {
|
||||
ControlItemDisplay display = new ControlItemDisplay(this, x, 66.0f);
|
||||
display.setItemStack(stack);
|
||||
display.hastooltip = true;
|
||||
x += 18.0f;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractMod getMod() {
|
||||
return ExtraBees.instance;
|
||||
}
|
||||
@Override
|
||||
public AbstractMod getMod() {
|
||||
return ExtraBees.instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "AlvearyMutator";
|
||||
}
|
||||
@Override
|
||||
public String getName() {
|
||||
return "AlvearyMutator";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user