abstract class BenchWindow extendsBlockWindowimplementsMaterialContainerWindow
Class BenchWindow. Provides benchwindow functionality for the Hytale server.
java.lang.Object > BlockWindow > BenchWindow
Field Summary
lastUpdatePercent
private
float
lastUpdatePercent
Field lastUpdatePercent.
lastUpdateTimeMs
private
long
lastUpdateTimeMs
Field lastUpdateTimeMs.
extraResourcesSection
private
MaterialExtraResourcesSection
extraResourcesSection
Field extraResourcesSection.
item
final
Item
item
Field item.
playerRef
final
PlayerRef
playerRef
Field playerRef.
ref
final
Ref
ref
Field ref.
store
final
Store
store
Field store.
craftingManager
final
CraftingManager
craftingManager
Field craftingManager.
world
final
World
world
Field world.
craftingManagerComponent
final
CraftingManager
craftingManagerComponent
Field craftingManagerComponent.
time
final
long
time
Field time.
Method Detail
BenchWindow
public
public
BenchWindow
(@Nonnull final WindowType windowType, @Nonnull final BenchState benchState)
Method BenchWindow.
- Parameters:
@Nonnull final WindowTypewindowType@Nonnull final BenchStatebenchState
getData
public
JsonObject
getData
()
Method getData.
onOpen0
protected
boolean
onOpen0
()
Method onOpen0.
getBenchTierLevel
protected
int
getBenchTierLevel
()
Method getBenchTierLevel.
onClose0
public
void
onClose0
()
Method onClose0.
updateCraftingJob
public
void
updateCraftingJob
(final float percent)
Method updateCraftingJob.
- Parameters:
final floatpercent
updateBenchUpgradeJob
public
void
updateBenchUpgradeJob
(final float percent)
Method updateBenchUpgradeJob.
- Parameters:
final floatpercent
checkProgressInvalidate
private
void
checkProgressInvalidate
(final float percent)
Method checkProgressInvalidate.
- Parameters:
final floatpercent
updateBenchTierLevel
public
void
updateBenchTierLevel
(final int newValue)
Method updateBenchTierLevel.
- Parameters:
final intnewValue
getExtraResourcesSection
Method getExtraResourcesSection.
invalidateExtraResources
public
void
invalidateExtraResources
()
Method invalidateExtraResources.
isValid
public
boolean
isValid
()
Method isValid.