mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 06:24:26 +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
@@ -11,28 +11,28 @@ import forestry.api.genetics.IIndividual;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ControlIndividualDisplay extends ControlItemDisplay implements ITooltip {
|
||||
public ControlIndividualDisplay(IWidget parent, float x, float y, IIndividual ind) {
|
||||
this(parent, x, y, 16.0f, ind);
|
||||
}
|
||||
public ControlIndividualDisplay(IWidget parent, float x, float y, IIndividual ind) {
|
||||
this(parent, x, y, 16.0f, ind);
|
||||
}
|
||||
|
||||
public ControlIndividualDisplay(IWidget parent, float x, float y, float size, IIndividual ind) {
|
||||
super(parent, x, y, size);
|
||||
BreedingSystem system = Binnie.Genetics.getSystem(ind.getGenome().getSpeciesRoot());
|
||||
setItemStack(system.getSpeciesRoot().getMemberStack(ind, system.getDefaultType()));
|
||||
setTooltip();
|
||||
}
|
||||
public ControlIndividualDisplay(IWidget parent, float x, float y, float size, IIndividual ind) {
|
||||
super(parent, x, y, size);
|
||||
BreedingSystem system = Binnie.Genetics.getSystem(ind.getGenome().getSpeciesRoot());
|
||||
setItemStack(system.getSpeciesRoot().getMemberStack(ind, system.getDefaultType()));
|
||||
setTooltip();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getTooltip(Tooltip tooltip) {
|
||||
ItemStack stack = getItemStack();
|
||||
if (stack == null) {
|
||||
return;
|
||||
}
|
||||
@Override
|
||||
public void getTooltip(Tooltip tooltip) {
|
||||
ItemStack stack = getItemStack();
|
||||
if (stack == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
IIndividual ind = AlleleManager.alleleRegistry.getIndividual(stack);
|
||||
if (ind == null) {
|
||||
return;
|
||||
}
|
||||
tooltip.add(ind.getGenome().getPrimary().getName());
|
||||
}
|
||||
IIndividual ind = AlleleManager.alleleRegistry.getIndividual(stack);
|
||||
if (ind == null) {
|
||||
return;
|
||||
}
|
||||
tooltip.add(ind.getGenome().getPrimary().getName());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user