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
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 ItemContainerStatecontainerStatefinal booleanclearDropList
SystemDependency
public
new
SystemDependency
(Order.AFTER, BlockStateModule.LegacyBlockStateRefSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERBlockStateModule.LegacyBlockStateRefSystem.classBlockStateModule.LegacyBlockStateRefSystem.class
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 Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
getDependencies
public
Set>
getDependencies
()
Method getDependencies.