Package noppes.npcs.api.entity
Interface IPixelmon<T extends net.minecraft.entity.passive.EntityTameable>
-
- Type Parameters:
T
- The underlying Minecraft EntityTameable type.
- All Superinterfaces:
IAnimal<T>
,IEntity<T>
,IEntityLiving<T>
,IEntityLivingBase<T>
public interface IPixelmon<T extends net.minecraft.entity.passive.EntityTameable> extends IAnimal<T>
Represents a Pixelmon (a tameable creature) with additional attributes such as shiny state, level, IV/EV values, nature, moves, and more.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getEV(int type)
Gets the Effort Value (EV) for the specified stat.int
getHapiness()
boolean
getIsShiny()
int
getIV(int type)
Gets the Individual Value (IV) for the specified stat.int
getLevel()
java.lang.String
getMove(int slot)
Returns the name of the move in the specified slot.int
getNature()
java.lang.String
getNickname()
int
getPokeball()
int
getSize()
int
getStat(int type)
Gets the calculated stat for the specified stat type.boolean
hasNickname()
void
setEV(int type, int value)
Sets the Effort Value (EV) for the specified stat.void
setHapiness(int value)
Sets the Pixelmon's happiness.void
setIsShiny(boolean bo)
Sets whether the Pixelmon is shiny.void
setIV(int type, int value)
Sets the Individual Value (IV) for the specified stat.void
setLevel(int level)
Sets the Pixelmon's level.void
setMove(int slot, java.lang.String move)
Sets the move in the specified slot.void
setNature(int type)
Sets the Pixelmon's nature.void
setNickname(java.lang.String name)
Sets the Pixelmon's nickname.void
setPokeball(int type)
Sets the type of Poké Ball for this Pixelmon.void
setSize(int type)
Sets the Pixelmon's size type.void
setStat(int type, int value)
Sets the calculated stat for the specified stat type.-
Methods inherited from interface noppes.npcs.api.entity.IAnimal
canMateWith, followingPlayer, interact, isBreedingItem, isInLove, resetInLove, setFollowPlayer
-
Methods inherited from interface noppes.npcs.api.entity.IEntity
capturesDrops, clearStoredData, clearTempData, despawn, dropItem, extinguish, getAge, getAllNbt, getBlockX, getBlockY, getBlockZ, getCapturedDrops, getDimension, getEntityId, getHeight, getMotion, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getNbtOptional, getPitch, getPosition, getRider, getRotation, getStoredData, getStoredDataKeys, getSurroundingEntities, getSurroundingEntities, getTempData, getTempDataKeys, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasCollidedHorizontally, hasCollidedVertically, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, knockback, removeStoredData, removeTempData, setBurning, setCapturedDrops, setCapturesDrops, setDimension, setImmune, setInvisible, setMotion, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setPosition, setPosition, setRider, setRotation, setRotation, setSneaking, setSprinting, setStoredData, setTempData, setX, setY, setZ, spawnParticle, storeAsClone, updateEntity
-
Methods inherited from interface noppes.npcs.api.entity.IEntityLiving
allowLeashing, canBeSteered, canPickUpLoot, clearLeashed, clearNavigation, enablePersistence, faceEntity, getAlwaysRenderNameTag, getCustomNameTag, getLeashed, getLeashedTo, getMCEntity, hasCustomNameTag, isNavigating, isPersistent, navigateTo, playLivingSound, setAlwaysRenderNameTag, setCanPickUpLoot, setCustomNameTag, setLeashedTo, setMoveForward, spawnExplosionParticle
-
Methods inherited from interface noppes.npcs.api.entity.IEntityLivingBase
addPotionEffect, canBreatheUnderwater, clearPotionEffects, dismountEntity, getAbsorptionAmount, getAIMoveSpeed, getArmor, getArrowCountInEntity, getAttackTarget, getAttackTargetTime, getFollowRange, getHealth, getHeldItem, getKnockbackResistance, getLastAttacker, getLastAttackerTime, getLookingAtBlock, getLookingAtBlock, getLookingAtEntities, getLookingAtEntities, getLookingAtEntities, getLookingAtPos, getLookingAtPos, getLookVector, getMaxHealth, getMaxHurtTime, getMeleeStrength, getPotionEffect, getSpeed, getTotalArmorValue, getType, hurt, hurt, hurt, isAttacking, isChild, isOnLadder, renderBrokenItemStack, setAbsorptionAmount, setAIMoveSpeed, setArmor, setArrowCountInEntity, setAttackTarget, setFollowRange, setHealth, setHeldItem, setKnockbackResistance, setLastAttacker, setMaxHealth, setMaxHurtTime, setMeleeStrength, setSpeed, swingHand, typeOf
-
-
-
-
Method Detail
-
getIsShiny
boolean getIsShiny()
- Returns:
- true if the Pixelmon is shiny.
-
setIsShiny
void setIsShiny(boolean bo)
Sets whether the Pixelmon is shiny.- Parameters:
bo
- true for shiny.
-
getLevel
int getLevel()
- Returns:
- The Pixelmon's level.
-
setLevel
void setLevel(int level)
Sets the Pixelmon's level.- Parameters:
level
- the new level.
-
getIV
int getIV(int type)
Gets the Individual Value (IV) for the specified stat.- Parameters:
type
- 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed- Returns:
- the IV value, or -1 if invalid.
-
setIV
void setIV(int type, int value)
Sets the Individual Value (IV) for the specified stat.- Parameters:
type
- 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speedvalue
- the new IV value.
-
getEV
int getEV(int type)
Gets the Effort Value (EV) for the specified stat.- Parameters:
type
- 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed- Returns:
- the EV value, or -1 if invalid.
-
setEV
void setEV(int type, int value)
Sets the Effort Value (EV) for the specified stat.- Parameters:
type
- 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speedvalue
- the new EV value.
-
getStat
int getStat(int type)
Gets the calculated stat for the specified stat type.- Parameters:
type
- 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed- Returns:
- the stat value, or -1 if invalid.
-
setStat
void setStat(int type, int value)
Sets the calculated stat for the specified stat type.- Parameters:
type
- 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speedvalue
- the new stat value.
-
getSize
int getSize()
- Returns:
- The Pixelmon's size type (0: Pygmy, 1: Runt, 2: Small, 3: Normal, 4: Huge, 5: Giant, 6: Enormous, 7: Ginormous, 8: Microscopic).
-
setSize
void setSize(int type)
Sets the Pixelmon's size type.- Parameters:
type
- the size type.
-
getHapiness
int getHapiness()
- Returns:
- The Pixelmon's happiness (0-255).
-
setHapiness
void setHapiness(int value)
Sets the Pixelmon's happiness.- Parameters:
value
- a value between 0 and 255.
-
getNature
int getNature()
- Returns:
- The Pixelmon's nature as an integer (see nature definitions).
-
setNature
void setNature(int type)
Sets the Pixelmon's nature.- Parameters:
type
- the nature value.
-
getPokeball
int getPokeball()
- Returns:
- The type of Poké Ball in which the Pixelmon is contained (-1: Uncaught, 0: Pokéball, 1: Great Ball, etc.).
-
setPokeball
void setPokeball(int type)
Sets the type of Poké Ball for this Pixelmon.- Parameters:
type
- -1 for Uncaught, 0 for Pokéball, etc.
-
getNickname
java.lang.String getNickname()
- Returns:
- The Pixelmon's nickname.
-
hasNickname
boolean hasNickname()
- Returns:
- true if the Pixelmon has a nickname.
-
setNickname
void setNickname(java.lang.String name)
Sets the Pixelmon's nickname.- Parameters:
name
- the new nickname.
-
getMove
java.lang.String getMove(int slot)
Returns the name of the move in the specified slot.- Parameters:
slot
- the move slot.- Returns:
- the move name.
-
setMove
void setMove(int slot, java.lang.String move)
Sets the move in the specified slot.- Parameters:
slot
- the move slot.move
- the move name.
-
-