mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Minor cleanup
This commit is contained in:
1 parent
09fa488cff
commit
49542b0851
3 files changed
+5
-5
No files matched your search
@@ -46,7 +46,7 @@ public class PropertyFlower<I extends IFlowerType<I>> extends PropertyHelper<I>
|
||||
IAllele allele = AlleleManager.alleleRegistry.getAllele(value);
|
||||
if (IAlleleFlowerSpecies.class.isInstance(allele)) {
|
||||
IAlleleFlowerSpecies alleleValue = IAlleleFlowerSpecies.class.cast(allele);
|
||||
return (Optional<I>) Optional.of(alleleValue.getType());
|
||||
return Optional.of((I) alleleValue.getType());
|
||||
}
|
||||
return Optional.absent();
|
||||
}
|
||||
|
||||
@@ -72,8 +72,8 @@ public class Mods {
|
||||
return this.stack(name, 1);
|
||||
}
|
||||
|
||||
public ItemStack stack(final String string, final int i, final int j) {
|
||||
return new ItemStack(this.item(string), i, j);
|
||||
public ItemStack stack(final String string, final int amount, final int meta) {
|
||||
return new ItemStack(this.item(string), amount, meta);
|
||||
}
|
||||
|
||||
public boolean active() {
|
||||
|
||||
@@ -35,8 +35,8 @@ public enum LaboratoryMachine implements IMachineType {
|
||||
return true;
|
||||
}
|
||||
|
||||
public ItemStack get(final int i) {
|
||||
return new ItemStack(Genetics.packageLabMachine.getBlock(), i, this.ordinal());
|
||||
public ItemStack get(final int amount) {
|
||||
return new ItemStack(Genetics.packageLabMachine.getBlock(), amount, this.ordinal());
|
||||
}
|
||||
|
||||
public static class PackageLabMachine extends GeneticMachine.PackageGeneticBase {
|
||||
|
||||
Reference in new issue
Block a user