public abstract class MixinEntityPlayerMP extends MixinEntityPlayer implements org.spongepowered.api.entity.living.player.Player, IMixinSubject, IMixinEntityPlayerMP, IMixinCommandSender, IMixinCommandSource
Modifier and Type | Field and Description |
---|---|
boolean |
keepsLevel |
int |
lastExperience |
net.minecraft.server.MinecraftServer |
mcServer |
int |
newExperience |
int |
newLevel |
int |
newTotalExperience |
net.minecraft.network.NetHandlerPlayServer |
playerNetServerHandler |
capabilities, experience, experienceLevel, experienceTotal, foodStats, inventoryContainer, openContainer
_combatTracker, attackingPlayer, deathTime, entityLivingToAttack, hurtTime, lastActiveTarget, lastDamage, lastKilledTarget, maxHurtResistantTime, maxHurtTime, potionsNeedUpdate
dataWatcher, fallDistance, fire, fireResistance, height, hurtResistantTime, inWater, isDead, motionX, motionY, motionZ, onGround, posX, posY, posZ, prevPosX, prevPosY, prevPosZ, rand, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, width, worldObj
UNKNOWN
COMMAND_BLOCK_SENDER, COMMAND_MINECART_SENDER, EXECUTE_COMMAND_SENDER, SIGN_CLICK_SENDER
Constructor and Description |
---|
MixinEntityPlayerMP() |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.util.command.CommandSource |
asCommandSource() |
net.minecraft.command.ICommandSender |
asICommandSender() |
void |
clearTitle() |
org.spongepowered.api.data.manipulator.mutable.entity.BanData |
getBanData() |
org.spongepowered.api.network.PlayerConnection |
getConnection() |
String |
getCustomName() |
String |
getIdentifier() |
Locale |
getLocale() |
Optional<org.spongepowered.api.entity.living.player.Player> |
getPlayer() |
org.spongepowered.api.GameProfile |
getProfile() |
org.spongepowered.api.scoreboard.Scoreboard |
getScoreboard() |
String |
getSubjectCollectionIdentifier() |
org.spongepowered.api.text.Text |
getTeamRepresentation() |
org.spongepowered.api.entity.living.player.User |
getUserObject() |
net.minecraft.scoreboard.Scoreboard |
getWorldScoreboard() |
boolean |
isCustomNameVisible() |
boolean |
isOnline() |
boolean |
isSleepingIgnored() |
boolean |
isViewingInventory() |
void |
kick() |
void |
kick(org.spongepowered.api.text.Text message) |
Collection |
onGetObjectivesFromCriteria(net.minecraft.scoreboard.IScoreObjectiveCriteria criteria) |
org.spongepowered.api.util.Tristate |
permDefault(String permission) |
void |
playSound(org.spongepowered.api.effect.sound.SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume) |
void |
playSound(org.spongepowered.api.effect.sound.SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch) |
void |
playSound(org.spongepowered.api.effect.sound.SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch,
double minVolume) |
void |
reset() |
void |
resetTitle() |
void |
sendMessage(org.spongepowered.api.text.chat.ChatType type,
Iterable<org.spongepowered.api.text.Text> messages) |
void |
sendMessage(org.spongepowered.api.text.chat.ChatType type,
org.spongepowered.api.text.Text... messages) |
void |
sendResourcePack(org.spongepowered.api.resourcepack.ResourcePack pack) |
void |
sendTitle(org.spongepowered.api.text.title.Title title) |
void |
setCustomName(String name) |
void |
setCustomNameVisible(boolean visible) |
void |
setLevel(int level) |
void |
setScoreboard(org.spongepowered.api.scoreboard.Scoreboard scoreboard) |
void |
setSleepingIgnored(boolean sleepingIgnored) |
void |
spawnParticles(org.spongepowered.api.effect.particle.ParticleEffect particleEffect,
com.flowpowered.math.vector.Vector3d position) |
void |
spawnParticles(org.spongepowered.api.effect.particle.ParticleEffect particleEffect,
com.flowpowered.math.vector.Vector3d position,
int radius) |
addExperience, getDisplayName, getExperienceBetweenLevels, getExperienceSinceLevel, getFoodStats, getGameProfile, getLevel, getTotalExperience, isFlying, isSpectator, onGetEntitiesWithinAABB, setExperienceSinceLevel, setFlying, setTotalExperience, xpBarCap
addPotionEffect, addPotionEffect, addPotionEffects, attackEntityFrom, clearActivePotions, damageD, getActivePotionEffects, getEntityAttribute, getEquipmentInSlot, getEyeHeightD, getEyeLocation, getHealth, getHealthD, getInvulnerabilityTicks, getLastActiveTarget, getLastAttacker, getLastAttackerAPI, getLastDamage, getLastKilledTarget, getMaxAir, getMaxHealth, getMaxHealthD, getMaxInvulnerabilityTicks, getPotionEffects, getRemainingAir, hasPotionEffect, isAPIInvisible, isPotionActive, onCollideWithNearbyEntities, onDeathSendEntityState, onSetRevengeTarget, readFromNbt, removePotionEffect, removePotionEffect, setAPIInvisible, setCurrentItemOrArmor, setHealth, setHealthD, setInvulnerabilityTicks, setLastAttacker, setLastAttacker, setLastDamage, setMaxAir, setMaxHealth, setMaxInvulnerabilityTicks, setRemainingAir, writeToNbt
copy, createSnapshot, getAir, getAlwaysRenderNameTag, getBaseVehicle, getContainers, getCustomNameTag, getEyeHeight, getFlag, getLocation, getPosition, getRotation, getScale, getSpongeCreator, getTeleportVehicle, getTransform, getType, getUniqueId, getUniqueID, getVelocity, getWorld, isLoaded, isOnGround, isRemoved, isTeleporting, mountEntity, onGetEyeHeight, onMoveEntity, onReadFromNBT, onSetSize, onWriteToNBT, remove, setAir, setAlwaysRenderNameTag, setCustomNameTag, setDead, setEyeHeight, setFlag, setIsTeleporting, setLocation, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setPassenger, setPosition, setRawData, setRotation, setScale, setTeleportVehicle, setTransform, setVehicle, setVelocity, shadow$setRotation, supplyVanillaManipulators, teleportEntity, toContainer, transferToWorld, transferToWorld, validateRawData, writeToNBT
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayNameData, getGameModeData, getJoinData, getTabList
closeInventory, getFoodData, getOpenInventory, openInventory
getHealthData, getMortalData
createSnapshot, damage, getLocation, getRotation, getScale, getTransform, getType, getWorld, isLoaded, isOnGround, isRemoved, remove, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setRotation, setScale, setTransform, transferToWorld, transferToWorld
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, supports, transform, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, supports, supports
launchProjectile, launchProjectile
getAchievementData, getName, getStatisticData
getBoots, getChestplate, getHelmet, getItemInHand, getLeggings, setBoots, setChestplate, setHelmet, setItemInHand, setLeggings
canEquip, canEquip, equip, getEquipped
getLocation, getWorld
getMessageSink, getName, sendMessage, sendMessage, setMessageSink
getActiveContexts, getCommandSource, getContainingCollection, getParents, getParents, getPermissionValue, getSubjectData, getTransientSubjectData, hasPermission, hasPermission, isChildOf, isChildOf
setSubject
usesCustomClient
getBedLocation, isSpawnForced
getActivatedTick, getActivationType, getDefaultActivationState, getSpongeData, inactiveTick, setActivatedTick
public int newExperience
public int newLevel
public int newTotalExperience
public boolean keepsLevel
public net.minecraft.network.NetHandlerPlayServer playerNetServerHandler
public int lastExperience
public net.minecraft.server.MinecraftServer mcServer
public Collection onGetObjectivesFromCriteria(net.minecraft.scoreboard.IScoreObjectiveCriteria criteria)
public org.spongepowered.api.GameProfile getProfile()
getProfile
in interface org.spongepowered.api.entity.living.player.User
public boolean isOnline()
isOnline
in interface org.spongepowered.api.entity.living.player.User
public Optional<org.spongepowered.api.entity.living.player.Player> getPlayer()
getPlayer
in interface org.spongepowered.api.entity.living.player.User
public org.spongepowered.api.entity.living.player.User getUserObject()
getUserObject
in interface IMixinEntityPlayerMP
public Locale getLocale()
getLocale
in interface org.spongepowered.api.entity.living.player.Player
public void sendMessage(org.spongepowered.api.text.chat.ChatType type, org.spongepowered.api.text.Text... messages)
sendMessage
in interface org.spongepowered.api.effect.Viewer
public void sendMessage(org.spongepowered.api.text.chat.ChatType type, Iterable<org.spongepowered.api.text.Text> messages)
sendMessage
in interface org.spongepowered.api.effect.Viewer
public void sendTitle(org.spongepowered.api.text.title.Title title)
sendTitle
in interface org.spongepowered.api.effect.Viewer
public void resetTitle()
resetTitle
in interface org.spongepowered.api.effect.Viewer
public void clearTitle()
clearTitle
in interface org.spongepowered.api.effect.Viewer
public void spawnParticles(org.spongepowered.api.effect.particle.ParticleEffect particleEffect, com.flowpowered.math.vector.Vector3d position)
spawnParticles
in interface org.spongepowered.api.effect.Viewer
public void spawnParticles(org.spongepowered.api.effect.particle.ParticleEffect particleEffect, com.flowpowered.math.vector.Vector3d position, int radius)
spawnParticles
in interface org.spongepowered.api.effect.Viewer
public org.spongepowered.api.network.PlayerConnection getConnection()
getConnection
in interface org.spongepowered.api.entity.living.player.Player
getConnection
in interface org.spongepowered.api.util.command.source.RemoteSource
public void setLevel(int level)
setLevel
in class MixinEntityPlayer
public String getSubjectCollectionIdentifier()
getSubjectCollectionIdentifier
in interface IMixinSubject
public String getCustomName()
getCustomName
in class MixinEntityLivingBase
public void setCustomName(String name)
setCustomName
in class MixinEntityLivingBase
public boolean isCustomNameVisible()
isCustomNameVisible
in class MixinEntityLivingBase
public void setCustomNameVisible(boolean visible)
setCustomNameVisible
in class MixinEntityLivingBase
public String getIdentifier()
getIdentifier
in interface org.spongepowered.api.service.permission.Subject
getIdentifier
in interface IMixinCommandSource
public org.spongepowered.api.util.Tristate permDefault(String permission)
permDefault
in interface IMixinSubject
public void reset()
reset
in interface IMixinEntityPlayerMP
public org.spongepowered.api.data.manipulator.mutable.entity.BanData getBanData()
getBanData
in interface org.spongepowered.api.entity.living.player.User
public boolean isViewingInventory()
isViewingInventory
in interface org.spongepowered.api.entity.living.Human
public void setScoreboard(org.spongepowered.api.scoreboard.Scoreboard scoreboard)
setScoreboard
in interface org.spongepowered.api.entity.living.player.Player
public org.spongepowered.api.text.Text getTeamRepresentation()
getTeamRepresentation
in interface org.spongepowered.api.scoreboard.TeamMember
getTeamRepresentation
in class MixinEntityLivingBase
public net.minecraft.scoreboard.Scoreboard getWorldScoreboard()
getWorldScoreboard
in class MixinEntityPlayer
public org.spongepowered.api.scoreboard.Scoreboard getScoreboard()
getScoreboard
in interface org.spongepowered.api.entity.living.player.Player
public void kick()
kick
in interface org.spongepowered.api.entity.living.player.Player
public void kick(org.spongepowered.api.text.Text message)
kick
in interface org.spongepowered.api.entity.living.player.Player
public void playSound(org.spongepowered.api.effect.sound.SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume)
playSound
in interface org.spongepowered.api.effect.Viewer
public void playSound(org.spongepowered.api.effect.sound.SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume, double pitch)
playSound
in interface org.spongepowered.api.effect.Viewer
public void playSound(org.spongepowered.api.effect.sound.SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume, double pitch, double minVolume)
playSound
in interface org.spongepowered.api.effect.Viewer
public void sendResourcePack(org.spongepowered.api.resourcepack.ResourcePack pack)
sendResourcePack
in interface org.spongepowered.api.entity.living.player.Player
public org.spongepowered.api.util.command.CommandSource asCommandSource()
asCommandSource
in interface IMixinCommandSender
public net.minecraft.command.ICommandSender asICommandSender()
asICommandSender
in interface IMixinCommandSource
public boolean isSleepingIgnored()
isSleepingIgnored
in interface org.spongepowered.api.entity.living.player.Player
public void setSleepingIgnored(boolean sleepingIgnored)
setSleepingIgnored
in interface org.spongepowered.api.entity.living.player.Player