Search in sources :

Example 1 with InfuseType

use of mekanism.api.chemical.infuse.InfuseType in project Mekanism by mekanism.

the class CrTInfuseTypeBuilder method build.

@Override
protected void build(ResourceLocation registryName) {
    InfuseType infuseType;
    if (colorRepresentation == null) {
        infuseType = new InfuseType(getInternal());
    } else {
        int color = colorRepresentation;
        infuseType = new InfuseType(getInternal()) {

            @Override
            public int getColorRepresentation() {
                return color;
            }
        };
    }
    CrTContentUtils.queueInfuseTypeForRegistration(registryName, infuseType);
}
Also used : InfuseType(mekanism.api.chemical.infuse.InfuseType)

Aggregations

InfuseType (mekanism.api.chemical.infuse.InfuseType)1