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

@@ -1,6 +1,7 @@
package noppes.npcs.api.handler;
import noppes.npcs.api.handler.data.IAction;
import java.util.Queue;
import java.util.function.Consumer;
@@ -7,9 +7,11 @@ import noppes.npcs.api.entity.IEntity;
public interface ICloneHandler {
IEntity spawn(double x, double y, double z, int tab, String name, IWorld world, boolean ignoreProtection);
IEntity spawn(IPos pos, int tab, String name, IWorld world, boolean ignoreProtection);
IEntity spawn(double x, double y, double z, int tab, String name, IWorld world);
IEntity spawn(IPos pos, int tab, String name, IWorld world);
IEntity[] getTab(int tab, IWorld world);
@@ -1,4 +1,5 @@
package noppes.npcs.api.handler;
import noppes.npcs.api.entity.ICustomNpc;
public interface IPlayerData {
@@ -16,7 +16,7 @@ public interface IPlayerQuestData {
boolean hasFinishedQuest(int id);
public boolean hasActiveQuest(int id);
boolean hasActiveQuest(int id);
IQuest[] getActiveQuests();
@@ -24,5 +24,5 @@ public interface IPlayerQuestData {
long getLastCompletedTime(int id);
void setLastCompletedTime(int id,long time);
void setLastCompletedTime(int id, long time);
}
@@ -20,7 +20,8 @@ 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
*/
@@ -28,6 +29,7 @@ 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,4 +1,5 @@
package noppes.npcs.api.handler.data;
import java.util.List;
public interface IDialog {
@@ -29,18 +30,23 @@ 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,38 +4,52 @@ 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();
@@ -1,8 +1,5 @@
package noppes.npcs.api.handler.data;
import noppes.npcs.api.entity.ICustomNpc;
import noppes.npcs.api.entity.IPlayer;
public interface IMagic {
int getId();
@@ -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,24 +18,28 @@ 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();
@@ -68,12 +72,14 @@ 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);
@@ -90,7 +96,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 {
public boolean isAllowParty();
boolean isAllowParty();
public void setAllowParty(boolean allowParty);
void setAllowParty(boolean allowParty);
public boolean isOnlyParty();
boolean isOnlyParty();
public void setOnlyParty(boolean onlyParty);
void setOnlyParty(boolean onlyParty);
/**
* @return 0:Leader, 1:All, 2:Valid
* @return 0:Leader, 1:All, 2:Valid
*/
public int getPartyRequirements();
int getPartyRequirements();
/**
* @param partyRequirements 0:Leader, 1:All, 2:Valid
*/
public void setPartyRequirements(int partyRequirements);
void setPartyRequirements(int partyRequirements);
/**
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
public int getRewardControl();
int getRewardControl();
/**
* @param rewardControl 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
public void setRewardControl(int rewardControl);
void setRewardControl(int rewardControl);
/**
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
* @return 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
public int getCompleteFor();
int getCompleteFor();
/**
* @param completeFor 0:Leader, 1:All, 2:Enrolled, 3:Valid
*/
public void setCompleteFor(int completeFor);
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
*/
public int getObjectiveRequirement();
int getObjectiveRequirement();
/**
* @param requirement 0:Shard, 1:All, 2:Leader
*/
public void setObjectiveRequirement(int requirement);
void setObjectiveRequirement(int requirement);
public int getMinPartySize();
int getMinPartySize();
public void setMinPartySize(int newSize);
void setMinPartySize(int newSize);
public int getMaxPartySize();
int getMaxPartySize();
public void setMaxPartySize(int newSize);
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,11 +2,14 @@ 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,5 +2,6 @@ package noppes.npcs.api.handler.data;
public interface IQuestKill extends IQuestInterface {
void setTargetType(int type);
int getTargetType();
}
@@ -2,11 +2,14 @@ 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);