This commit is contained in:
Kam committed 2025-03-13 15:36:30 -04:00
1 parent c81e848895
commit c7a74a3e0e
59 files changed
+506 -592

No files matched your search

@@ -20,8 +20,7 @@ public interface IAnvilRecipe {
/**
* Checks whether the provided item and repair material match this recipe.
*
* @param itemToRepair the damaged item
* @param itemToRepair the damaged item
* @param repairMaterial the material used to repair
* @return true if the items match the recipe requirements
*/
@@ -29,7 +28,6 @@ public interface IAnvilRecipe {
/**
* Returns the repaired item based on the input damaged item.
*
* @param itemToRepair the input damaged item
* @return a copy with reduced damage
*/
@@ -1,5 +1,4 @@
package noppes.npcs.api.handler.data;
import java.util.List;
public interface IDialog {
@@ -30,23 +29,18 @@ public interface IDialog {
IDialogCategory getCategory();
void setDarkenScreen(boolean darkenScreen);
boolean getDarkenScreen();
void setDisableEsc(boolean disableEsc);
boolean getDisableEsc();
void setShowWheel(boolean showWheel);
boolean getShowWheel();
void setHideNPC(boolean hideNPC);
boolean getHideNPC();
void setSound(String sound);
String getSound();
void save();
@@ -4,52 +4,38 @@ public interface IDialogImage {
int getId();
void setTexture(String texture);
String getTexture();
void setPosition(int x, int y);
int getX();
int getY();
void setWidthHeight(int width, int height);
int getWidth();
int getHeight();
void setTextureOffset(int offsetX, int offsetY);
int getTextureX();
int getTextureY();
void setColor(int color);
int getColor();
void setSelectedColor(int color);
int getSelectedColor();
void setScale(float scale);
float getScale();
void setAlpha(float alpha);
float getAlpha();
void setRotation(float rotation);
float getRotation();
void setImageType(int imageType);
int getImageType();
void setAlignment(int alignment);
int getAlignment();
}
@@ -1,6 +1,6 @@
package noppes.npcs.api.handler.data;
public interface IFramePart {
public interface IFramePart{
String getName();
@@ -24,9 +24,9 @@ public interface IMagicData {
boolean isEmpty();
/**
* @param id The ID of the Magic
* @param id The ID of the Magic
* @param damage The bonus damage for the Magic
* @param split The split of the Magic
* @param split The split of the Magic
*/
void addMagic(int id, float damage, float split);
@@ -18,28 +18,24 @@ public interface IParty {
/**
* Set a quest to the party (this does not validate use validateQuest())
*
* @param quest Quest Object
*/
void setQuest(IQuest quest);
/**
* Get the Quest for the Party, can be null
*
* @return quest
*/
IQuest getQuest();
/**
* Get the Quest ID for Party | -1 if no quest
*
* @return quest id
*/
int getCurrentQuestID();
/**
* Get the Quest Name for Party | BLANK if no quest
*
* @return quest name
*/
String getCurrentQuestName();
@@ -72,14 +68,12 @@ public interface IParty {
/**
* Check if Player is in Party with IPlayer
*
* @return true/false if player is in party
*/
boolean hasPlayer(IPlayer player);
/**
* Check if Player is in Party with Player Name
*
* @return true/false if player is in party
*/
boolean hasPlayer(String playerName);
@@ -96,7 +90,7 @@ public interface IParty {
/**
* @param questID ID for the Quest to Verify
* @param questID ID for the Quest to Verify
* @param sendLeaderMessages IF true will send ERROR message to Party Leader on why the quest could not be set
* @return true/false if the party CAN have the quest set
*/
@@ -3,46 +3,46 @@ package noppes.npcs.api.handler.data;
public interface IPartyOptions {
boolean isAllowParty();
public boolean isAllowParty();
void setAllowParty(boolean allowParty);
public void setAllowParty(boolean allowParty);
boolean isOnlyParty();
public boolean isOnlyParty();
void setOnlyParty(boolean onlyParty);
public void setOnlyParty(boolean onlyParty);
/**
* @return 0:Leader, 1:All, 2:Valid
* @return 0:Leader, 1:All, 2:Valid
*/
int getPartyRequirements();
public int getPartyRequirements();
/**
* @param partyRequirements 0:Leader, 1:All, 2:Valid
*/
void setPartyRequirements(int partyRequirements);
public void setPartyRequirements(int partyRequirements);
/**
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
int getRewardControl();
public int getRewardControl();
/**
* @param rewardControl 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
void setRewardControl(int rewardControl);
public void setRewardControl(int rewardControl);
/**
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
int getCompleteFor();
public int getCompleteFor();
/**
* @param completeFor 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
void setCompleteFor(int completeFor);
public void setCompleteFor(int completeFor);
/**
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
int getExecuteCommandFor();
@@ -54,19 +54,19 @@ public interface IPartyOptions {
/**
* @return 0:Shard, 1:All, 2:Leader
*/
int getObjectiveRequirement();
public int getObjectiveRequirement();
/**
* @param requirement 0:Shard, 1:All, 2:Leader
*/
void setObjectiveRequirement(int requirement);
public void setObjectiveRequirement(int requirement);
int getMinPartySize();
public int getMinPartySize();
void setMinPartySize(int newSize);
public void setMinPartySize(int newSize);
int getMaxPartySize();
public int getMaxPartySize();
void setMaxPartySize(int newSize);
public void setMaxPartySize(int newSize);
}
@@ -7,22 +7,22 @@ public interface IProfileOptions {
void setProfileOptions(boolean enable);
/**
* @param profileType 0:Individual, 1:Shared
* @param profileType 0:Individual, 1:Shared
*/
void setCooldownControl(int profileType);
/**
* @return 0:Individual, 1:Shared
* @return 0:Individual, 1:Shared
*/
int getCooldownControl();
/**
* @param profileType 0:Individual, 1:Shared
* @param profileType 0:Individual, 1:Shared
*/
void setCompleteControl(int profileType);
/**
* @return 0:Individual, 1:Shared
* @return 0:Individual, 1:Shared
*/
int getCompleteControl();
}
@@ -2,14 +2,11 @@ package noppes.npcs.api.handler.data;
public interface IQuestItem extends IQuestInterface {
void setLeaveItems(boolean leaveItems);
boolean getLeaveItems();
void setIgnoreDamage(boolean ignoreDamage);
boolean getIgnoreDamage();
void setIgnoreNbt(boolean ignoreNbt);
boolean getIgnoreNbt();
}
@@ -2,6 +2,5 @@ package noppes.npcs.api.handler.data;
public interface IQuestKill extends IQuestInterface {
void setTargetType(int type);
int getTargetType();
}
@@ -2,14 +2,11 @@ package noppes.npcs.api.handler.data;
public interface IQuestLocation extends IQuestInterface {
void setLocation1(String loc1);
String getLocation1();
void setLocation2(String loc2);
String getLocation2();
void setLocation3(String loc3);
String getLocation3();
}
@@ -28,7 +28,7 @@ public interface IQuestObjective {
* have a party
*
* @param playerName Name of Player
* @param progress Progress Amount
* @param progress Progress Amount
*/
void setPlayerProgress(String playerName, int progress);