Full Imports and Code Format Optimization

This commit is contained in:
Kam committed 2025-03-12 20:11:39 -04:00
1 parent c22c5f9d79
commit afb5f1d645
60 files changed
+592 -509

No files matched your search

+16 -16
View File
@@ -5,20 +5,20 @@ import noppes.npcs.api.entity.IPlayer;
public interface IRoleFollower extends IRole {
/**
* @since 1.7.10c
* @param player Player who is set as the owner. If null given everything resets
* @since 1.7.10c
*/
void setOwner(IPlayer player);
/**
* @since 1.7.10c
* @return Returns the followers owner. Returns null if he has no owner or the owner is offline
* @since 1.7.10c
*/
IPlayer getOwner();
/**
* @since 1.7.10c
* @return Returns whether or not the follower has an owner
* @since 1.7.10c
*/
boolean hasOwner();
@@ -27,71 +27,71 @@ public interface IRoleFollower extends IRole {
void setIsFollowing(boolean following);
/**
* @since 1.7.10c
* @return Returns days left
* @since 1.7.10c
*/
int getDaysLeft();
/**
* @since 1.7.10c
* @param days The days you want to add to the days remaining
* @since 1.7.10c
*/
void addDaysLeft(int days);
/**
* @since 1.7.10c
* @return Returns whether or not the follower is set to infinite days
* @since 1.7.10c
*/
boolean getInfiniteDays();
/**
* @since 1.7.10c
* @param infinite Sets whether the days hired are infinite
* @since 1.7.10c
*/
void setInfiniteDays(boolean infinite);
/**
* @since 1.7.10c
* @return Return whether the gui is disabled
* @since 1.7.10c
*/
boolean getGuiDisabled();
/**
* @since 1.7.10c
* @param disabled Set the gui to be disabled or not
* @since 1.7.10c
*/
void setGuiDisabled(boolean disabled);
/**
* @param index Index of Rate [0 - 2]
* @param index Index of Rate [0 - 2]
* @param amount Amount hired for
*/
public void setRate(int index, int amount);
void setRate(int index, int amount);
/**
* @param index Index of Rate [0 - 2]
* @return amount fired for
*/
public int getRate(int index);
int getRate(int index);
/**
* @param dialogHire New dialog hire string
*/
public void setDialogHire(String dialogHire);
void setDialogHire(String dialogHire);
/**
* @return dialog hire string
*/
public String getDialogHire();
String getDialogHire();
/**
* @param dialogFarewell New dialog farewell string
*/
public void setDialogFarewell(String dialogFarewell);
void setDialogFarewell(String dialogFarewell);
/**
* @return dialog farewell string
*/
public String getDialogFarewell();
String getDialogFarewell();
}
+11 -5
View File
@@ -6,17 +6,17 @@ import noppes.npcs.api.item.IItemStack;
public interface IRoleTrader extends IRole {
/**
* @param slot Slot number 0-17
* @param currency Currency item
* @param slot Slot number 0-17
* @param currency Currency item
* @param currency2 Currency item number two
* @param sold Item to be sold by this npc
* @param sold Item to be sold by this npc
*/
void setSellOption(int slot, IItemStack currency, IItemStack currency2, IItemStack sold);
/**
* @param slot Slot number 0-17
* @param slot Slot number 0-17
* @param currency Currency item
* @param sold Item to be sold by this npc
* @param sold Item to be sold by this npc
*/
void setSellOption(int slot, IItemStack currency, IItemStack sold);
@@ -67,12 +67,14 @@ public interface IRoleTrader extends IRole {
/**
* sets the purchase num for that slot to 0
*
* @param slot
*/
void resetPurchaseNum(int slot);
/**
* sets the purchase num for that slot and player to 0
*
* @param slot
* @param player
*/
@@ -93,12 +95,14 @@ public interface IRoleTrader extends IRole {
/**
* prevent an item from being sold on that slot
*
* @param slot
*/
void disableSlot(int slot);
/**
* disables the slot for this player
*
* @param slot
* @param player
*/
@@ -106,12 +110,14 @@ public interface IRoleTrader extends IRole {
/**
* allow an item to be sold on that slot
*
* @param slot
*/
void enableSlot(int slot);
/**
* enables the slot for this player
*
* @param slot
* @param player
*/