/** * Sets an extra property of this inventory if supported by that * inventory, for example the state of a progress bar. * * @param prop the window property to update * @param value the new value for the window property * @return true if the property was updated successfully, false if the * property is not supported by that inventory */ public final boolean setProperty(Property prop, int value) { return getPlayer().setWindowProperty(prop, value); }
human.setWindowProperty(Property.BURN_TIME, burnTime); human.setWindowProperty(Property.TICKS_FOR_CURRENT_FUEL, burnTimeFuel); human.setWindowProperty(Property.COOK_TIME, cookTime); human.setWindowProperty(Property.TICKS_FOR_CURRENT_SMELTING, 200); }); if (!isBurnable && burnTime == 0 && cookTime == 0) {
/** * Sets an extra property of this inventory if supported by that * inventory, for example the state of a progress bar. * * @param prop the window property to update * @param value the new value for the window property * @return true if the property was updated successfully, false if the * property is not supported by that inventory */ public final boolean setProperty(Property prop, int value) { return getPlayer().setWindowProperty(prop, value); }