mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
Auto-format spaces to tabs (#2)
This commit is contained in:
1 parent
25be7fd254
commit
5bb4b5d9a5
756 files changed
+49198
-48489
No files matched your search
@@ -11,27 +11,27 @@ import forestry.api.genetics.IIndividual;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ControlIndividualDisplay extends ControlItemDisplay implements ITooltip {
|
||||
public ControlIndividualDisplay(final IWidget parent, final float x, final float y, final IIndividual ind) {
|
||||
this(parent, x, y, 16.0f, ind);
|
||||
}
|
||||
public ControlIndividualDisplay(final IWidget parent, final float x, final float y, final IIndividual ind) {
|
||||
this(parent, x, y, 16.0f, ind);
|
||||
}
|
||||
|
||||
public ControlIndividualDisplay(final IWidget parent, final float x, final float y, final float size, final IIndividual ind) {
|
||||
super(parent, x, y, size);
|
||||
final BreedingSystem system = Binnie.Genetics.getSystem(ind.getGenome().getSpeciesRoot());
|
||||
this.setItemStack(system.getSpeciesRoot().getMemberStack(ind, system.getDefaultType()));
|
||||
this.setTooltip();
|
||||
}
|
||||
public ControlIndividualDisplay(final IWidget parent, final float x, final float y, final float size, final IIndividual ind) {
|
||||
super(parent, x, y, size);
|
||||
final BreedingSystem system = Binnie.Genetics.getSystem(ind.getGenome().getSpeciesRoot());
|
||||
this.setItemStack(system.getSpeciesRoot().getMemberStack(ind, system.getDefaultType()));
|
||||
this.setTooltip();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getTooltip(final Tooltip tooltip) {
|
||||
final ItemStack stack = this.getItemStack();
|
||||
if (stack == null) {
|
||||
return;
|
||||
}
|
||||
final IIndividual ind = AlleleManager.alleleRegistry.getIndividual(stack);
|
||||
if (ind == null) {
|
||||
return;
|
||||
}
|
||||
tooltip.add(ind.getGenome().getPrimary().getName());
|
||||
}
|
||||
@Override
|
||||
public void getTooltip(final Tooltip tooltip) {
|
||||
final ItemStack stack = this.getItemStack();
|
||||
if (stack == null) {
|
||||
return;
|
||||
}
|
||||
final IIndividual ind = AlleleManager.alleleRegistry.getIndividual(stack);
|
||||
if (ind == null) {
|
||||
return;
|
||||
}
|
||||
tooltip.add(ind.getGenome().getPrimary().getName());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user