mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #758 Add fireproof versions of all Forestry wooden items Fix #762 Forestry saplings are randomly invisible on place. Fix #689 Remove old fence recipes Fix #504 Make NaturalistEye pretty Fix #778 Villager house roofs should be made of colorful Forestry wood stairs
37 lines
1.3 KiB
Java
Executable File
37 lines
1.3 KiB
Java
Executable File
/*******************************************************************************
|
|
* Copyright (c) 2011-2014 SirSengir.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Lesser Public License v3
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
*
|
|
* Various Contributors including, but not limited to:
|
|
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
|
******************************************************************************/
|
|
package forestry.apiculture.genetics;
|
|
|
|
import forestry.api.apiculture.IAlleleBeeSpecies;
|
|
import forestry.api.apiculture.IBeeGenome;
|
|
import forestry.api.apiculture.IBeeHousing;
|
|
import forestry.api.apiculture.IJubilanceProvider;
|
|
import forestry.api.core.EnumHumidity;
|
|
import forestry.api.core.EnumTemperature;
|
|
|
|
public class JubilanceDefault implements IJubilanceProvider {
|
|
|
|
public static final JubilanceDefault instance = new JubilanceDefault();
|
|
|
|
protected JubilanceDefault() {
|
|
|
|
}
|
|
|
|
@Override
|
|
public boolean isJubilant(IAlleleBeeSpecies species, IBeeGenome genome, IBeeHousing housing) {
|
|
EnumTemperature temperature = housing.getTemperature();
|
|
EnumHumidity humidity = housing.getHumidity();
|
|
|
|
return temperature == species.getTemperature() && humidity == species.getHumidity();
|
|
}
|
|
|
|
}
|