@BasicObjectMethod.Inject( value = IBeeHousing.class, modId = Constants.MOD_ID, doc = "function():string -- Get the temperature of this bee housing." ) public static Object[] getTemperature(IContext<IBeeHousing> context, Object[] arg) { return new Object[]{context.getTarget().getTemperature().getName()}; }
data.put("complexity", species.getComplexity()); data.put("humidity", species.getHumidity().getName()); data.put("temperature", species.getTemperature().getName());
y += th; new ControlText(contents, new Area(0, y, w2, th), I18N.localise("binniecore.gui.temperature.short") + " : ", TextJustification.MIDDLE_RIGHT); new ControlText(contents, new Area(w2, y, w3, th), treeSpecies.getTemperature().getName(), TextJustification.MIDDLE_LEFT); y += th; Minecraft minecraft = Minecraft.getMinecraft();
int th2 = 18; new ControlText(contents, new Area(0, y, w2, th), I18N.localise(DatabaseConstants.BOTANY_GENOME_KEY + ".temp"), TextJustification.MIDDLE_RIGHT); new ControlText(contents, new Area(w2, y, w3, th), flowerSpecies.getTemperature().getName(), TextJustification.MIDDLE_LEFT);