Contents
Class StashPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.adventure.stash.StashPlugin
- All Implemented Interfaces:
CommandOwner
-
Field Summary
Fields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListTransaction<ItemStackTransaction> stash(BlockModule.BlockStateInfo blockStateInfo, ItemContainerBlock containerState, boolean clearDropList) Called to stash the items into the container based on its droplist.Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Constructor Details
-
StashPlugin
-
-
Method Details
-
stash
@Nullable public static ListTransaction<ItemStackTransaction> stash(@Nonnull BlockModule.BlockStateInfo blockStateInfo, @Nonnull ItemContainerBlock containerState, boolean clearDropList) Called to stash the items into the container based on its droplist.- Parameters:
blockStateInfo- TheBlockModule.BlockStateInfofor the block being stashed.containerState- The container state to stash items into.clearDropList- The flag to clear the droplist after stashing.- Returns:
- the transaction representing the stashing operation, or
nullif no droplist is set.
-