public interface IPlayer<T extends net.minecraft.entity.player.EntityPlayerMP> extends IEntityLivingBase<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addFactionPoints(int faction,
int points) |
boolean |
blocking() |
boolean |
canHarvestBlock(IBlock block) |
void |
clearInventory() |
void |
clearItemInUse() |
void |
closeGui() |
void |
closeOverlay(int id) |
void |
continueSounds() |
void |
disableMouseInput(long time,
int... buttonIds) |
IEntity |
dropOneItem(boolean dropStack) |
void |
finishQuest(int id) |
void |
finishQuest(IQuest quest)
Add the quest from finished quest list
|
IQuest[] |
getActiveQuests() |
ICustomGui |
getCustomGui() |
IPlayerData |
getData() |
noppes.npcs.scripted.entity.ScriptDBCPlayer<T> |
getDBCPlayer() |
java.lang.String |
getDisplayName() |
int |
getExpLevel() |
int |
getFactionPoints(int faction) |
IQuest[] |
getFinishedQuests() |
int |
getHunger() |
IItemStack[] |
getInventory() |
int |
getMode() |
java.lang.String |
getName() |
IContainer |
getOpenContainer() |
IOverlayHandler |
getOverlays() |
noppes.npcs.scripted.ScriptPixelmonPlayerData |
getPixelmonData()
Requires pixelmon to be installed
|
float |
getSaturation() |
ITimers |
getTimers() |
int |
getType() |
boolean |
giveItem(IItemStack item,
int amount) |
boolean |
giveItem(java.lang.String id,
int damage,
int amount) |
boolean |
hasAchievement(java.lang.String achievement) |
boolean |
hasActiveQuest(int id) |
boolean |
hasActiveQuest(IQuest quest) |
boolean |
hasBukkitPermission(java.lang.String permission) |
boolean |
hasFinishedQuest(int id) |
boolean |
hasFinishedQuest(IQuest quest) |
boolean |
hasReadDialog(IDialog dialog) |
boolean |
hasReadDialog(int id) |
boolean |
interactWith(IEntity entity) |
int |
inventoryItemCount(IItemStack item,
boolean ignoreNBT,
boolean ignoreDamage) |
boolean |
isScriptingDev() |
void |
kick(java.lang.String reason) |
void |
mountEntity(net.minecraft.entity.Entity ridingEntity) |
void |
pauseSounds() |
void |
playSound(int id,
ISound sound) |
void |
playSound(java.lang.String name,
float volume,
float pitch) |
void |
readDialog(IDialog dialog) |
void |
readDialog(int id) |
int |
removeAllItems(IItemStack item,
boolean ignoreNBT,
boolean ignoreDamage) |
boolean |
removeItem(IItemStack item,
int amount,
boolean ignoreNBT,
boolean ignoreDamage) |
boolean |
removeItem(java.lang.String id,
int damage,
int amount) |
void |
removeQuest(int id) |
void |
removeQuest(IQuest quest)
Removes the quest from active and finished quest list
|
void |
resetSpawnpoint() |
void |
sendMessage(java.lang.String message) |
void |
setExpLevel(int level) |
void |
setFactionPoints(int faction,
int points) |
void |
setHunger(int hunger) |
void |
setMode(int type) |
void |
setPosition(double x,
double y,
double z) |
void |
setPosition(double x,
double y,
double z,
int dimensionId) |
void |
setRotation(float rotationYaw,
float rotationPitch) |
void |
setSaturation(float saturation) |
void |
setSpawnpoint(int x,
int y,
int z)
Same as the /spawnpoint command
|
void |
showCustomGui(ICustomGui gui) |
void |
showCustomOverlay(ICustomOverlay overlay) |
void |
showDialog(IDialog dialog) |
void |
showDialog(int id) |
void |
startQuest(int id) |
void |
startQuest(IQuest quest)
Add the quest from active quest list
|
void |
stopQuest(int id) |
void |
stopQuest(IQuest quest)
Removes the quest from active quest list
|
void |
stopSound(int id) |
void |
stopSounds() |
void |
stopUsingItem() |
boolean |
typeOf(int type) |
void |
unreadDialog(IDialog dialog) |
void |
unreadDialog(int id) |
void |
updatePlayerInventory() |
addPotionEffect, canSeeEntity, clearPotionEffects, getArmor, getAttackTarget, getHealth, getHeldItem, getLookingAtBlock, getLookingAtEntities, getLookingAtEntities, getLookingAtPos, getLookVector, getMaxHealth, getMCEntity, getPotionEffect, hurt, hurt, hurt, isAttacking, setArmor, setAttackTarget, setHealth, setHeldItem, swingHandclearStoredData, clearTempData, despawn, dropItem, extinguish, getAge, getAllNbt, getBlockX, getBlockY, getBlockZ, getDimension, getEntityId, getHeight, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getPitch, getPos, getRider, getRotation, getStoredData, getSurroundingEntities, getSurroundingEntities, getTempData, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, removeStoredData, removeTempData, setBurning, setImmune, setInvisible, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setPos, setRider, setRotation, setSneaking, setSprinting, setStoredData, setTempData, setX, setY, setZ, spawnParticle, storeAsClonejava.lang.String getDisplayName()
java.lang.String getName()
void kick(java.lang.String reason)
void setPosition(double x,
double y,
double z)
setPosition in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>x - The x positiony - The y positionz - The z positionvoid setPosition(double x,
double y,
double z,
int dimensionId)
int getHunger()
void setHunger(int hunger)
float getSaturation()
void setSaturation(float saturation)
void showDialog(IDialog dialog)
boolean hasReadDialog(IDialog dialog)
void readDialog(IDialog dialog)
void unreadDialog(IDialog dialog)
void showDialog(int id)
boolean hasReadDialog(int id)
void readDialog(int id)
void unreadDialog(int id)
boolean hasFinishedQuest(IQuest quest)
boolean hasActiveQuest(IQuest quest)
void startQuest(IQuest quest)
quest - The questvoid finishQuest(IQuest quest)
quest - The questvoid stopQuest(IQuest quest)
quest - The questvoid removeQuest(IQuest quest)
quest - The questboolean hasFinishedQuest(int id)
boolean hasActiveQuest(int id)
void startQuest(int id)
id - The quest IDvoid finishQuest(int id)
id - The quest IDvoid stopQuest(int id)
id - The quest IDvoid removeQuest(int id)
id - The quest IDIQuest[] getFinishedQuests()
int getType()
getType in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>getType in interface IEntityLivingBase<T extends net.minecraft.entity.player.EntityPlayerMP>EntityTypeboolean typeOf(int type)
typeOf in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>typeOf in interface IEntityLivingBase<T extends net.minecraft.entity.player.EntityPlayerMP>type - @EntityType to checkvoid addFactionPoints(int faction,
int points)
faction - The faction idpoints - The points to increase. Use negative values to decreasevoid setFactionPoints(int faction,
int points)
faction - The faction idpoints - The new point value for this factionint getFactionPoints(int faction)
faction - The faction idvoid sendMessage(java.lang.String message)
message - The message you want to send. Compatible with formatting codes, which can be found on the attached link.int getMode()
void setMode(int type)
type - The gamemode type. 0:SURVIVAL, 1:CREATIVE, 2:ADVENTUREIItemStack[] getInventory()
int inventoryItemCount(IItemStack item, boolean ignoreNBT, boolean ignoreDamage)
item - The item to be checkedignoreNBT - Whether the item's NBT tags will be checked to be equalignoreDamage - Whether the item's damage will be checked to be equalboolean removeItem(java.lang.String id,
int damage,
int amount)
id - The items namedamage - The damage valueamount - How many will be removedboolean removeItem(IItemStack item, int amount, boolean ignoreNBT, boolean ignoreDamage)
item - The Item type to be removedamount - How many will be removedignoreNBT - Whether the item's NBT tags will be checked to be equalignoreDamage - Whether the item's damage will be checked to be equalint removeAllItems(IItemStack item, boolean ignoreNBT, boolean ignoreDamage)
item - The item to be removed from the players inventoryignoreNBT - Whether the item's NBT tags will be checked to be equalignoreDamage - Whether the item's damage will be checked to be equalboolean giveItem(IItemStack item, int amount)
item - Item to be addedamount - The amount of the item to be addedboolean giveItem(java.lang.String id,
int damage,
int amount)
id - The items namedamage - The damage valueamount - The amount of the item to be addedvoid setSpawnpoint(int x,
int y,
int z)
x - The x positiony - The y positionz - The z positionvoid resetSpawnpoint()
void setRotation(float rotationYaw,
float rotationPitch)
void disableMouseInput(long time,
int... buttonIds)
void stopUsingItem()
void clearItemInUse()
void clearInventory()
void playSound(java.lang.String name,
float volume,
float pitch)
void playSound(int id,
ISound sound)
void stopSound(int id)
void pauseSounds()
void continueSounds()
void stopSounds()
void mountEntity(net.minecraft.entity.Entity ridingEntity)
IEntity dropOneItem(boolean dropStack)
boolean canHarvestBlock(IBlock block)
boolean interactWith(IEntity entity)
boolean hasAchievement(java.lang.String achievement)
achievement - The achievement id. For a complete list see http://minecraft.gamepedia.com/Achievementsboolean hasBukkitPermission(java.lang.String permission)
permission - Bukkit/Cauldron permissionint getExpLevel()
void setExpLevel(int level)
level - The new exp level you want to setnoppes.npcs.scripted.ScriptPixelmonPlayerData getPixelmonData()
ITimers getTimers()
void updatePlayerInventory()
noppes.npcs.scripted.entity.ScriptDBCPlayer<T> getDBCPlayer()
boolean blocking()
IPlayerData getData()
boolean isScriptingDev()
IQuest[] getActiveQuests()
IContainer getOpenContainer()
void showCustomGui(ICustomGui gui)
ICustomGui getCustomGui()
void closeGui()
void showCustomOverlay(ICustomOverlay overlay)
void closeOverlay(int id)
IOverlayHandler getOverlays()