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 ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic final record -
Field Summary
Fields inherited from class ModuleUtils
moduleAlertPrefix, moduleLogPrefix -
Constructor Summary
ConstructorsConstructorDescriptionAbstractInventoryModule(AbstractInventoryModule.HandRestriction handRestriction, int targetMainHandHotbarSlot) -
Method Summary
Modifier and TypeMethodDescriptionintexecutes and provides additional data about the action, including the action future do not call both V2 and the original method, select one@Nullable HandgetHand()abstract intbooleanabstract booleanitemPredicate(ItemStack itemStack) Methods 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() -
doInventoryActionsV2
executes and provides additional data about the action, including the action future do not call both V2 and the original method, select one -
doInventoryActions
public int doInventoryActions() -
isItemEquipped
public boolean isItemEquipped() -
getHand
-