mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 04:32:24 +00:00
port to forestry 4.2
This commit is contained in:
1 parent
dbc5c1a564
commit
f969f63b66
3697 files changed
+78372
No files matched your search
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.genetics.item;
|
||||
|
||||
import binnie.core.liquid.FluidContainer;
|
||||
import binnie.Binnie;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import binnie.genetics.Genetics;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import binnie.core.liquid.IFluidType;
|
||||
|
||||
public enum GeneticLiquid implements IFluidType
|
||||
{
|
||||
GrowthMedium("Growth Medium", "growthMedium", 15460533),
|
||||
Bacteria("Bacteria", "bacteria", 14203521),
|
||||
BacteriaPoly("Polymerising Bacteria", "bacteriaPoly", 11443396),
|
||||
RawDNA("Raw DNA", "dna.raw", 15089129),
|
||||
BacteriaVector("Bacteria Vector", "bacteriaVector", 15960958);
|
||||
|
||||
String name;
|
||||
String ident;
|
||||
IIcon icon;
|
||||
int colour;
|
||||
float transparency;
|
||||
|
||||
private GeneticLiquid(final String name, final String ident, final int colour) {
|
||||
this.name = name;
|
||||
this.ident = ident;
|
||||
this.colour = colour;
|
||||
this.transparency = 1.0f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon() {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcon(final IIconRegister register) {
|
||||
this.icon = Genetics.proxy.getIcon(register, "liquids/" + this.ident);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdentifier() {
|
||||
return "binnie." + this.ident;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getColour() {
|
||||
return 16777215;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getContainerColour() {
|
||||
return this.colour;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FluidStack get(final int amount) {
|
||||
return Binnie.Liquid.getLiquidStack(this.getIdentifier(), amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTransparency() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPlaceIn(final FluidContainer container) {
|
||||
return this == GeneticLiquid.GrowthMedium || container == FluidContainer.Cylinder;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showInCreative(final FluidContainer container) {
|
||||
return container == FluidContainer.Cylinder;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user