mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 15:45:13 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
c22c5f9d79
commit
afb5f1d645
60 files changed
+592
-509
No files matched your search
@@ -536,19 +536,20 @@ public interface IEntity<T extends Entity> {
|
||||
IEntity<?>[] getCapturedDrops();
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @return Whether the entity is sneaking.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
boolean isSneaking();
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @return Whether the entity is sprinting.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
boolean isSprinting();
|
||||
|
||||
/**
|
||||
* Expert users only.
|
||||
*
|
||||
* @return The underlying Minecraft entity.
|
||||
*/
|
||||
T getMCEntity();
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import noppes.npcs.api.entity.IEntityLivingBase;
|
||||
|
||||
/**
|
||||
* Represents a living entity (mob, NPC, etc.) that extends the base living functionality.
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityTameable;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
/**
|
||||
* Represents a Pixelmon (a tameable creature) with additional attributes
|
||||
@@ -37,6 +36,7 @@ public interface IPixelmon<T extends EntityTameable> extends IAnimal<T> {
|
||||
|
||||
/**
|
||||
* Gets the Individual Value (IV) for the specified stat.
|
||||
*
|
||||
* @param type 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
|
||||
* @return the IV value, or -1 if invalid.
|
||||
*/
|
||||
@@ -84,7 +84,7 @@ public interface IPixelmon<T extends EntityTameable> extends IAnimal<T> {
|
||||
|
||||
/**
|
||||
* @return The Pixelmon's size type (0: Pygmy, 1: Runt, 2: Small, 3: Normal, 4: Huge, 5: Giant,
|
||||
* 6: Enormous, 7: Ginormous, 8: Microscopic).
|
||||
* 6: Enormous, 7: Ginormous, 8: Microscopic).
|
||||
*/
|
||||
int getSize();
|
||||
|
||||
@@ -121,7 +121,7 @@ public interface IPixelmon<T extends EntityTameable> extends IAnimal<T> {
|
||||
|
||||
/**
|
||||
* @return The type of Poké Ball in which the Pixelmon is contained
|
||||
* (-1: Uncaught, 0: Pokéball, 1: Great Ball, etc.).
|
||||
* (-1: Uncaught, 0: Pokéball, 1: Great Ball, etc.).
|
||||
*/
|
||||
int getPokeball();
|
||||
|
||||
|
||||
@@ -312,8 +312,8 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>,
|
||||
void setMode(int type);
|
||||
|
||||
/**
|
||||
* @since 1.7.10d
|
||||
* @return Returns an IItemStack array of size 36 representing the player's inventory.
|
||||
* @since 1.7.10d
|
||||
*/
|
||||
IItemStack[] getInventory();
|
||||
|
||||
@@ -326,11 +326,11 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>,
|
||||
int inventoryItemCount(IItemStack item, boolean ignoreNBT, boolean ignoreDamage);
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @param id The item's name.
|
||||
* @param damage The damage value.
|
||||
* @param amount How many items will be removed.
|
||||
* @return True if the items were removed successfully, false if the amount exceeds what the player has or the item doesn't exist.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
boolean removeItem(String id, int damage, int amount);
|
||||
|
||||
@@ -352,19 +352,19 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>,
|
||||
int removeAllItems(IItemStack item, boolean ignoreNBT, boolean ignoreDamage);
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @param item The item to be added.
|
||||
* @param amount The number of items to add.
|
||||
* @return True if the item was given successfully, false otherwise.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
boolean giveItem(IItemStack item, int amount);
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @param id The item's name.
|
||||
* @param damage The damage value.
|
||||
* @param amount The number of items to add.
|
||||
* @return True if the item was given successfully, false otherwise.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
boolean giveItem(String id, int damage, int amount);
|
||||
|
||||
@@ -510,22 +510,22 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>,
|
||||
boolean hasBukkitPermission(String permission);
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @return Returns the player's experience level.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
int getExpLevel();
|
||||
|
||||
/**
|
||||
* @since 1.7.10c
|
||||
* @param level The new experience level to set.
|
||||
* @since 1.7.10c
|
||||
*/
|
||||
void setExpLevel(int level);
|
||||
|
||||
/**
|
||||
* Requires Pixelmon to be installed.
|
||||
*
|
||||
* @since 1.7.10d
|
||||
* @return Returns the player's Pixelmon data, or null if Pixelmon is not enabled.
|
||||
* @since 1.7.10d
|
||||
*/
|
||||
IPixelmonPlayerData getPixelmonData();
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import noppes.npcs.api.entity.IEntityLivingBase;
|
||||
|
||||
/**
|
||||
* Represents a villager entity with additional trading-related methods.
|
||||
|
||||
Reference in new issue
Block a user