Class AbstractInventoryModule
java.lang.Object
com.zenith.module.api.ModuleUtils
com.zenith.module.api.Module
com.zenith.module.impl.AbstractInventoryModule
Modules that follow a general pattern of equipping an item to a hotbar or offhand slot and using it
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ModuleUtils
moduleAlertPrefix, moduleLogPrefix -
Constructor Summary
ConstructorsConstructorDescriptionAbstractInventoryModule(AbstractInventoryModule.HandRestriction handRestriction, int targetMainHandHotbarSlot) -
Method Summary
Modifier and TypeMethodDescriptionint@Nullable HandgetHand()abstract intbooleanabstract booleanitemPredicate(ItemStack itemStack) booleanMethods inherited from class Module
disable, enable, enabledSetting, getClientPacketHandlerCodec, getServerPacketHandlerCodec, isEnabled, onDisable, onEnable, registerClientPacketHandlerCodec, registerEvents, registerServerPacketHandlerCodec, setEnabled, subscribeEvents, syncEnabledFromConfig, unsubscribeEventsMethods inherited from class ModuleUtils
debug, debug, debug, disconnect, discordAndIngameNotification, discordNotification, error, error, error, executeCommand, info, info, info, inGameAlert, inGameAlertActivePlayer, sendClientPacket, sendClientPacketAsync, sendClientPacketAwait, sendClientPacketsAsync, warn, warn, warn
-
Constructor Details
-
AbstractInventoryModule
public AbstractInventoryModule(AbstractInventoryModule.HandRestriction handRestriction, int targetMainHandHotbarSlot)
-
-
Method Details
-
itemPredicate
-
getPriority
public abstract int getPriority() -
doInventoryActions
public int doInventoryActions() -
isItemEquipped
public boolean isItemEquipped() -
switchToItem
public boolean switchToItem() -
getHand
-