BenchWindow

abstract class BenchWindow extends BlockWindow implements MaterialContainerWindow

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 WindowType windowType
@Nonnull final BenchState benchState

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 float percent

updateBenchUpgradeJob

public void updateBenchUpgradeJob (final float percent)

Method updateBenchUpgradeJob.

Parameters:
final float percent

checkProgressInvalidate

private void checkProgressInvalidate (final float percent)

Method checkProgressInvalidate.

Parameters:
final float percent

updateBenchTierLevel

public void updateBenchTierLevel (final int newValue)

Method updateBenchTierLevel.

Parameters:
final int newValue

getExtraResourcesSection

public MaterialExtraResourcesSection getExtraResourcesSection ()

Method getExtraResourcesSection.

invalidateExtraResources

public void invalidateExtraResources ()

Method invalidateExtraResources.

isValid

public boolean isValid ()

Method isValid.