BenchState

public class BenchState extends BlockState implements DestroyableBlockState

Class BenchState. Provides benchstate functionality for the Hytale server.

java.lang.Object > BlockState > BenchState

Field Summary

tierLevel

private int tierLevel

Field tierLevel.

upgradeItems

protected ItemStack[] upgradeItems

Field upgradeItems.

bench

protected Bench bench

Field bench.

world

final World world

Field world.

entityStore

final Store entityStore

Field entityStore.

dropPosition

final Vector3d dropPosition

Field dropPosition.

itemEntityHolders

final Holder[] itemEntityHolders

Field itemEntityHolders.

currentBlockType

final BlockType currentBlockType

Field currentBlockType.

baseBlockKey

final String baseBlockKey

Field baseBlockKey.

Method Detail

BenchState

public public BenchState ()

Method BenchState.

getTierLevel

public int getTierLevel ()

Method getTierLevel.

initialize

public boolean initialize (@Nonnull final BlockType blockType)

Method initialize.

Parameters:
@Nonnull final BlockType blockType

addUpgradeItems

public void addUpgradeItems (final List consumed)

Method addUpgradeItems.

Parameters:
final List consumed

dropUpgradeItems

private void dropUpgradeItems ()

Method dropUpgradeItems.

getBench

public Bench getBench ()

Method getBench.

setTierLevel

public void setTierLevel (final int newTierLevel)

Method setTierLevel.

Parameters:
final int newTierLevel

getNextLevelUpgradeMaterials

public BenchUpgradeRequirement getNextLevelUpgradeMaterials ()

Method getNextLevelUpgradeMaterials.

onTierLevelChange

protected void onTierLevelChange ()

Method onTierLevelChange.

getBaseBlockType

public BlockType getBaseBlockType ()

Method getBaseBlockType.

getTierStateName

public String getTierStateName ()

Method getTierStateName.

onDestroy

public void onDestroy ()

Method onDestroy.

KeyedCodec

public new KeyedCodec ("UpgradeItems", new ArrayCodec(ItemStack.CODEC, ItemStack[]::new)

Method KeyedCodec.

Parameters:
"UpgradeItems" "UpgradeItems"
new ArrayCodec(ItemStack.CODEC
ItemStack[]::new ItemStack[]::new