StashPlugin

public class StashPlugin extends JavaPlugin

The main plugin class for Stash. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.

java.lang.Object > JavaPlugin > StashPlugin

Field Summary

droplist

final String droplist

Field droplist.

stacks

final List stacks

Field stacks.

itemContainer

final ItemContainer itemContainer

Field itemContainer.

capacity

final short capacity

Field capacity.

slots

final ShortArrayList slots

Field slots.

blockPosition

final Vector3i blockPosition

Field blockPosition.

positionHash

final long positionHash

Field positionHash.

rnd

final Random rnd

Field rnd.

slot

final short slot

Field slot.

transaction

final ItemStackSlotTransaction transaction

Field transaction.

world

final World world

Field world.

stashGameplayConfig

final StashGameplayConfig stashGameplayConfig

Field stashGameplayConfig.

clearContainerDropList

final boolean clearContainerDropList

Field clearContainerDropList.

Method Detail

StashPlugin

public public StashPlugin (@Nonnull final JavaPluginInit init)

Method StashPlugin.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

StashSystem

public new StashSystem (BlockStateModule.get()

Method StashSystem.

Parameters:
BlockStateModule.get( BlockStateModule.get(

stash

static ListTransaction stash (@Nonnull final ItemContainerState containerState, final boolean clearDropList)

Method stash.

Parameters:
@Nonnull final ItemContainerState containerState
final boolean clearDropList

SystemDependency

public new SystemDependency (Order.AFTER, BlockStateModule.LegacyBlockStateRefSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
BlockStateModule.LegacyBlockStateRefSystem.class BlockStateModule.LegacyBlockStateRefSystem.class

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

getDependencies

public Set> getDependencies ()

Method getDependencies.