HUGE CORE COMMIT

This commit is contained in:
Kam committed 2026-03-13 15:18:13 -04:00
1 parent 57e6934fe5
commit 43a52ad407
125 files changed
+1801 -413

No files matched your search

@@ -0,0 +1,94 @@
package noppes.npcs.api.entity.data;
/**
* Provides configuration data for an NPC's color tinting effects.
* <p>
* Controls both the hurt tint (flash color when damaged) and a persistent
* general tint overlay applied to the NPC's model.
*/
public interface ITintData {
/**
* Returns whether the tint system is enabled.
*
* @return true if tinting is enabled, false otherwise.
*/
boolean isTintEnabled();
/**
* Sets whether the tint system is enabled.
*
* @param enabled true to enable, false to disable.
*/
void setTintEnabled(boolean enabled);
/**
* Returns whether the hurt tint effect is enabled.
*
* @return true if hurt tint is enabled, false otherwise.
*/
boolean isHurtTintEnabled();
/**
* Sets whether the hurt tint effect is enabled.
*
* @param enabled true to enable, false to disable.
*/
void setHurtTintEnabled(boolean enabled);
/**
* Returns whether the general (persistent) tint is enabled.
*
* @return true if general tint is enabled, false otherwise.
*/
boolean isGeneralTintEnabled();
/**
* Sets whether the general (persistent) tint is enabled.
*
* @param enabled true to enable, false to disable.
*/
void setGeneralTintEnabled(boolean enabled);
/**
* Returns the hurt tint color as an RGB integer (e.g. 0xff0000 for red).
*
* @return the hurt tint color.
*/
int getHurtTint();
/**
* Sets the hurt tint color as an RGB integer.
*
* @param color the hurt tint color (e.g. 0xff0000 for red).
*/
void setHurtTint(int color);
/**
* Returns the general tint color as an RGB integer.
*
* @return the general tint color.
*/
int getGeneralTint();
/**
* Sets the general tint color as an RGB integer.
*
* @param color the general tint color.
*/
void setGeneralTint(int color);
/**
* Returns the alpha (opacity) of the general tint overlay (0-255).
*
* @return the general tint alpha value.
*/
int getGeneralAlpha();
/**
* Sets the alpha (opacity) of the general tint overlay (0-255).
*
* @param alpha the general tint alpha value.
*/
void setGeneralAlpha(int alpha);
}
@@ -0,0 +1,147 @@
package noppes.npcs.api.handler.data;
public interface IDialogImage {
/**
* @return The unique ID of this dialog image
*/
int getId();
/**
* Sets the texture resource location for this image.
* @param texture The resource location string
*/
void setTexture(String texture);
/**
* @return The texture resource location for this image
*/
String getTexture();
/**
* Sets the screen position of this image.
* @param x The X position in pixels
* @param y The Y position in pixels
*/
void setPosition(int x, int y);
/**
* @return The X position of this image in pixels
*/
int getX();
/**
* @return The Y position of this image in pixels
*/
int getY();
/**
* Sets the rendered width and height of this image.
* @param width The width in pixels
* @param height The height in pixels
*/
void setWidthHeight(int width, int height);
/**
* @return The rendered width of this image in pixels
*/
int getWidth();
/**
* @return The rendered height of this image in pixels
*/
int getHeight();
/**
* Sets the texture UV offset for this image.
* @param offsetX The horizontal texture offset in pixels
* @param offsetY The vertical texture offset in pixels
*/
void setTextureOffset(int offsetX, int offsetY);
/**
* @return The horizontal texture UV offset in pixels
*/
int getTextureX();
/**
* @return The vertical texture UV offset in pixels
*/
int getTextureY();
/**
* Sets the tint color of this image.
* @param color The color as an integer (e.g. 0xFFFFFF)
*/
void setColor(int color);
/**
* @return The tint color of this image
*/
int getColor();
/**
* Sets the tint color used when this image is selected/hovered.
* @param color The selected color as an integer (e.g. 0xFFFFFF)
*/
void setSelectedColor(int color);
/**
* @return The tint color used when this image is selected/hovered
*/
int getSelectedColor();
/**
* Sets the render scale of this image.
* @param scale The scale factor (default 1.0)
*/
void setScale(float scale);
/**
* @return The render scale of this image
*/
float getScale();
/**
* Sets the alpha transparency of this image.
* @param alpha The alpha value from 0.0 (transparent) to 1.0 (opaque)
*/
void setAlpha(float alpha);
/**
* @return The alpha transparency of this image (0.0 to 1.0)
*/
float getAlpha();
/**
* Sets the rotation angle of this image.
* @param rotation The rotation in degrees
*/
void setRotation(float rotation);
/**
* @return The rotation angle of this image in degrees
*/
float getRotation();
/**
* Sets the image type which determines where the image is rendered.
* @param imageType The image type: 0 = Default, 1 = Text, 2 = Option
*/
void setImageType(int imageType);
/**
* @return The image type: 0 = Default, 1 = Text, 2 = Option
*/
int getImageType();
/**
* Sets the alignment of this image.
* @param alignment The alignment value
*/
void setAlignment(int alignment);
/**
* @return The alignment value of this image
*/
int getAlignment();
}
@@ -0,0 +1,78 @@
package noppes.npcs.api.handler.data;
/**
* Represents a cycle (or category) grouping for magics.
* A magic cycle holds ordering and display information as well as associations
* to multiple magics.
*/
public interface IMagicCycle {
/**
* Gets the unique identifier of this magic cycle.
*
* @return the cycle ID
*/
int getId();
/**
* Gets the internal name of the magic cycle.
*
* @return the name of the cycle
*/
String getName();
/**
* Sets the internal name of the magic cycle.
*
* @param name the new name of the cycle
*/
void setName(String name);
/**
* Gets the display name of the magic cycle.
*
* @return the display name for the cycle
*/
String getDisplayName();
/**
* Sets the display name of the magic cycle.
*
* @param displayName the new display name of the cycle
*/
void setDisplayName(String displayName);
/**
* Gets the layout type for the cycle.
* This is typically an integer representation of the layout enum.
* <p>
* 0: CIRCULAR
* 1: SQUARE
* 2: TREE
* 3: GENERATED
* 4: CIRCULAR_MANUAL
* 5: SQUARE_MANUAL
* 6: TREE_MANUAL
* 7: CHART
*
* @return the layout type as an integer
*/
int getLayoutType();
/**
* Sets the layout type for the cycle.
* The provided integer should correspond to a valid layout type.
* <p>
* 0: CIRCULAR
* 1: SQUARE
* 2: TREE
* 3: GENERATED
* 4: CIRCULAR_MANUAL
* 5: SQUARE_MANUAL
* 6: TREE_MANUAL
* 7: CHART
*
* @param layout the layout type as an integer
*/
void setLayoutType(int layout);
}
@@ -0,0 +1,44 @@
package noppes.npcs.api.handler.data;
public interface IMagicData {
/**
* @param id The ID of the Magic
*/
void removeMagic(int id);
/**
* @param id The ID of the Magic
* @return If the Magic exists
*/
boolean hasMagic(int id);
/**
* Clears the Magics
*/
void clear();
/**
* @return If the Magics are empty
*/
boolean isEmpty();
/**
* @param id The ID of the Magic
* @param damage The bonus damage for the Magic
* @param split The split of the Magic
*/
void addMagic(int id, float damage, float split);
/**
* @param id The ID of the Magic
* @return The bonus damage for the Magic
*/
float getMagicDamage(int id);
/**
* @param id The ID of the Magic
* @return The split of the Magic
*/
float getMagicSplit(int id);
}
@@ -0,0 +1,28 @@
package noppes.npcs.api.handler.data;
public interface IProfileOptions {
boolean hasProfileOptions();
void setProfileOptions(boolean enable);
/**
* @param profileType 0:Individual, 1:Shared
*/
void setCooldownControl(int profileType);
/**
* @return 0:Individual, 1:Shared
*/
int getCooldownControl();
/**
* @param profileType 0:Individual, 1:Shared
*/
void setCompleteControl(int profileType);
/**
* @return 0:Individual, 1:Shared
*/
int getCompleteControl();
}