public class MCPlayer extends MCEntityLivingBase implements crafttweaker.api.player.IPlayer
Constructor and Description |
---|
MCPlayer(net.minecraft.entity.player.EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
void |
addScore(int amount) |
void |
copyToClipboard(java.lang.String value) |
boolean |
equals(java.lang.Object other) |
crafttweaker.api.item.IItemStack |
getCurrentItem() |
crafttweaker.api.data.IData |
getData() |
crafttweaker.api.player.IFoodStats |
getFoodStats() |
int |
getHotbarSize() |
crafttweaker.api.item.IItemStack |
getHotbarStack(int i) |
net.minecraft.entity.player.EntityPlayer |
getInternal() |
int |
getInventorySize() |
crafttweaker.api.item.IItemStack |
getInventoryStack(int i) |
java.lang.String |
getName() |
int |
getScore() |
int |
getXP() |
void |
give(crafttweaker.api.item.IItemStack stack) |
int |
hashCode() |
boolean |
isAdventure() |
boolean |
isCreative() |
void |
openBrowser(java.lang.String url) |
void |
removeXP(int xp) |
void |
sendChat(crafttweaker.api.chat.IChatMessage message) |
void |
sendChat(java.lang.String message) |
void |
setScore(int amount) |
void |
setXP(int xp) |
void |
teleport(crafttweaker.api.util.Position3f pos) |
void |
update(crafttweaker.api.data.IData data) |
addPotionEffect, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, getActivePotionEffect, getActivePotionEffects, getAIMoveSpeed, getArrowCountInEntity, getAttackingEntity, getAttribute, getHealth, getHeldItemMainHand, getHeldItemOffHand, getItemInSlot, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getTotalArmorValue, hasItemInSlot, heal, isChild, isOnLadder, isPotionActive, isPotionEffectApplicable, isUndead, knockBack, onDeath, onLivingUpdate, setAIMoveSpeed, setArrowCountInEntity, setHealth, setItemToSlot, setLastAttackedEntity, setRevengeTarger
addTag, alwaysRenderNameTag, attackEntityFrom, canBeAttackedWithItem, canBeCollidedWith, canBePushed, canPassengerSteer, canRiderInteract, canTrample, dismountRidingEntity, doesTriggerPressurePlate, dropItem, extinguish, getAir, getArmorInventoryList, getControllingPassenger, getCustomName, getDimension, getDisplayName, getDistanceSqToEntity, getEquipmentAndArmor, getEyeHight, getHeldEquipment, getID, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getNBT, getParts, getPassengers, getPassengersRecursive, getPickedResult, getPortalCooldown, getPosition3f, getRidingEntity, getServer, getTags, getTeam, getWorld, getX, getY, getZ, hasCustomName, hasNoGravity, isAlive, isBeingRidden, isBoss, isBurning, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInsideOfMaterial, isInsideOpaqueBlock, isInvisible, isInvulnerable, isInvulnerableTo, isInWater, isOnSameTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, onEntityUpdate, onKillCommand, onUpdate, removePassengers, removeTag, setAir, setAlwaysRenderNameTag, setCustomName, setDead, setDimension, setFire, setGlowing, setID, setInvisible, setInvulnerable, setInWeb, setNoGravity, setOutsideBorder, setPosition, setSilent, setSneaking, setSprinting, setToLocationFrom, setWorld, shouldRiderDismountInWater, shouldRiderSit, spawnRunningParticles, toString
getPosition, sendMessage
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPotionEffect, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, getActivePotionEffect, getActivePotionEffects, getAIMoveSpeed, getArrowCountInEntity, getAttackingEntity, getAttribute, getHealth, getHeldItemMainHand, getHeldItemOffHand, getItemInSlot, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getTotalArmorValue, hasItemInSlot, heal, isChild, isOnLadder, isPotionActive, isPotionEffectApplicable, isUndead, knockBack, onDeath, onLivingUpdate, setAIMoveSpeed, setArrowCountInEntity, setHealth, setItemToSlot, setLastAttackedEntity, setRevengeTarger
addTag, alwaysRenderNameTag, attackEntityFrom, canBeAttackedWithItem, canBeCollidedWith, canBePushed, canPassengerSteer, canRiderInteract, canTrample, dismountRidingEntity, doesTriggerPressurePlate, dropItem, extinguish, getAir, getArmorInventoryList, getControllingPassenger, getCustomName, getDimension, getDistanceSqToEntity, getEquipmentAndArmor, getEyeHight, getHeldEquipment, getID, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getNBT, getParts, getPassengers, getPassengersRecursive, getPickedResult, getPortalCooldown, getPosition3f, getRidingEntity, getTags, getTeam, getX, getY, getZ, hasCustomName, hasNoGravity, isAlive, isBeingRidden, isBoss, isBurning, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInsideOfMaterial, isInsideOpaqueBlock, isInvisible, isInvulnerable, isInvulnerableTo, isInWater, isOnSameTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, onEntityUpdate, onKillCommand, onUpdate, removePassengers, removeTag, setAir, setAlwaysRenderNameTag, setCustomName, setDead, setDimension, setFire, setGlowing, setID, setInvisible, setInvulnerable, setInWeb, setNoGravity, setOutsideBorder, setPosition, setSilent, setSneaking, setSprinting, setToLocationFrom, setWorld, shouldRiderDismountInWater, shouldRiderSit, spawnRunningParticles
public net.minecraft.entity.player.EntityPlayer getInternal()
getInternal
in interface crafttweaker.api.entity.IEntity
getInternal
in class MCEntity
public java.lang.String getName()
getName
in interface crafttweaker.api.player.IPlayer
public crafttweaker.api.data.IData getData()
getData
in interface crafttweaker.api.player.IPlayer
public int getXP()
getXP
in interface crafttweaker.api.player.IPlayer
public void setXP(int xp)
setXP
in interface crafttweaker.api.player.IPlayer
public void removeXP(int xp)
removeXP
in interface crafttweaker.api.player.IPlayer
public void update(crafttweaker.api.data.IData data)
update
in interface crafttweaker.api.player.IPlayer
public void sendChat(crafttweaker.api.chat.IChatMessage message)
sendChat
in interface crafttweaker.api.player.IPlayer
public void sendChat(java.lang.String message)
sendChat
in interface crafttweaker.api.player.IPlayer
public int getHotbarSize()
getHotbarSize
in interface crafttweaker.api.player.IPlayer
public crafttweaker.api.item.IItemStack getHotbarStack(int i)
getHotbarStack
in interface crafttweaker.api.player.IPlayer
public int getInventorySize()
getInventorySize
in interface crafttweaker.api.player.IPlayer
public crafttweaker.api.item.IItemStack getInventoryStack(int i)
getInventoryStack
in interface crafttweaker.api.player.IPlayer
public crafttweaker.api.item.IItemStack getCurrentItem()
getCurrentItem
in interface crafttweaker.api.player.IPlayer
public boolean isCreative()
isCreative
in interface crafttweaker.api.player.IPlayer
public boolean isAdventure()
isAdventure
in interface crafttweaker.api.player.IPlayer
public void openBrowser(java.lang.String url)
openBrowser
in interface crafttweaker.api.player.IPlayer
public void copyToClipboard(java.lang.String value)
copyToClipboard
in interface crafttweaker.api.player.IPlayer
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void give(crafttweaker.api.item.IItemStack stack)
give
in interface crafttweaker.api.player.IPlayer
public void teleport(crafttweaker.api.util.Position3f pos)
teleport
in interface crafttweaker.api.player.IPlayer
public int getScore()
getScore
in interface crafttweaker.api.player.IPlayer
public void addScore(int amount)
addScore
in interface crafttweaker.api.player.IPlayer
public void setScore(int amount)
setScore
in interface crafttweaker.api.player.IPlayer
public crafttweaker.api.player.IFoodStats getFoodStats()
getFoodStats
in interface crafttweaker.api.player.IPlayer