public abstract class MixinEntityLivingBase extends MixinEntity implements org.spongepowered.api.entity.living.Living, IMixinEntityLivingBase
Modifier and Type | Field and Description |
---|---|
net.minecraft.util.CombatTracker |
_combatTracker |
protected net.minecraft.entity.player.EntityPlayer |
attackingPlayer |
int |
deathTime |
net.minecraft.entity.EntityLivingBase |
entityLivingToAttack |
int |
hurtTime |
protected float |
lastDamage |
int |
maxHurtResistantTime |
int |
maxHurtTime |
boolean |
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
Constructor and Description |
---|
MixinEntityLivingBase() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addPotionEffect(net.minecraft.potion.PotionEffect potionEffect) |
void |
addPotionEffect(org.spongepowered.api.potion.PotionEffect potionEffect,
boolean force) |
void |
addPotionEffects(Collection<org.spongepowered.api.potion.PotionEffect> potionEffects,
boolean force) |
abstract boolean |
attackEntityFrom(net.minecraft.util.DamageSource source,
float amount) |
abstract void |
clearActivePotions() |
void |
damageD(double amount) |
abstract Collection |
getActivePotionEffects() |
String |
getCustomName() |
abstract net.minecraft.entity.ai.attributes.IAttributeInstance |
getEntityAttribute(net.minecraft.entity.ai.attributes.IAttribute attribute) |
abstract net.minecraft.item.ItemStack |
getEquipmentInSlot(int slotIn) |
double |
getEyeHeightD() |
com.flowpowered.math.vector.Vector3d |
getEyeLocation() |
abstract float |
getHealth() |
double |
getHealthD() |
org.spongepowered.api.data.manipulator.mutable.entity.HealthData |
getHealthData() |
int |
getInvulnerabilityTicks() |
abstract net.minecraft.entity.EntityLivingBase |
getLastAttacker() |
Optional<org.spongepowered.api.entity.living.Living> |
getLastAttackerAPI() |
double |
getLastDamage() |
int |
getMaxAir() |
abstract float |
getMaxHealth() |
double |
getMaxHealthD() |
int |
getMaxInvulnerabilityTicks() |
org.spongepowered.api.data.manipulator.mutable.entity.DamageableData |
getMortalData() |
List<org.spongepowered.api.potion.PotionEffect> |
getPotionEffects() |
int |
getRemainingAir() |
org.spongepowered.api.text.Text |
getTeamRepresentation() |
boolean |
hasPotionEffect(org.spongepowered.api.potion.PotionEffectType potionEffectType) |
boolean |
isAPIInvisible() |
boolean |
isCustomNameVisible() |
abstract boolean |
isPotionActive(net.minecraft.potion.Potion potion) |
void |
onDeathSendEntityState(net.minecraft.world.World world,
net.minecraft.entity.Entity self,
byte state) |
void |
readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
Read extra data (SpongeData) from the entity's NBT tag.
|
abstract void |
removePotionEffect(int id) |
void |
removePotionEffect(org.spongepowered.api.potion.PotionEffectType potionEffectType) |
void |
setAPIInvisible(boolean invisible) |
abstract void |
setCurrentItemOrArmor(int slotIn,
net.minecraft.item.ItemStack stack) |
void |
setCustomName(String name) |
void |
setCustomNameVisible(boolean visible) |
abstract void |
setHealth(float health) |
void |
setHealthD(double health) |
void |
setInvulnerabilityTicks(int ticks) |
abstract void |
setLastAttacker(net.minecraft.entity.Entity entity) |
void |
setLastAttacker(org.spongepowered.api.entity.living.Living lastAttacker) |
void |
setLastDamage(double damage) |
void |
setMaxAir(int air) |
void |
setMaxHealth(double maxHealth) |
void |
setMaxInvulnerabilityTicks(int ticks) |
void |
setRemainingAir(int air) |
org.spongepowered.api.data.DataContainer |
toContainer() |
void |
writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
Write extra data (SpongeData) to the entity's NBT tag.
|
getAir, getAlwaysRenderNameTag, getBaseVehicle, getContainers, getCustomNameTag, getEyeHeight, getFlag, getLocation, getPosition, getRotation, getScale, 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, teleportEntity, transferToWorld, transferToWorld, validateRawData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSnapshot, damage, getLocation, getRotation, getScale, getTransform, getType, getWorld, isLoaded, isOnGround, isRemoved, remove, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setRotation, setScale, setTransform, transferToWorld, transferToWorld
getProperties, getProperty, setRawData, validateRawData
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
getActivatedTick, getActivationType, getDefaultActivationState, getSpongeData, inactiveTick, setActivatedTick
public int maxHurtResistantTime
public int hurtTime
public int maxHurtTime
public int deathTime
public boolean potionsNeedUpdate
public net.minecraft.util.CombatTracker _combatTracker
public net.minecraft.entity.EntityLivingBase entityLivingToAttack
protected float lastDamage
protected net.minecraft.entity.player.EntityPlayer attackingPlayer
public abstract void setHealth(float health)
public abstract void addPotionEffect(net.minecraft.potion.PotionEffect potionEffect)
public abstract void removePotionEffect(int id)
public abstract void setCurrentItemOrArmor(int slotIn, net.minecraft.item.ItemStack stack)
public abstract void clearActivePotions()
public abstract void setLastAttacker(net.minecraft.entity.Entity entity)
public abstract boolean isPotionActive(net.minecraft.potion.Potion potion)
public abstract boolean attackEntityFrom(net.minecraft.util.DamageSource source, float amount)
public abstract float getHealth()
public abstract float getMaxHealth()
public abstract Collection getActivePotionEffects()
public abstract net.minecraft.entity.EntityLivingBase getLastAttacker()
public abstract net.minecraft.entity.ai.attributes.IAttributeInstance getEntityAttribute(net.minecraft.entity.ai.attributes.IAttribute attribute)
public abstract net.minecraft.item.ItemStack getEquipmentInSlot(int slotIn)
public void setLastAttacker(@Nullable org.spongepowered.api.entity.living.Living lastAttacker)
public void setMaxHealth(double maxHealth)
public void damageD(double amount)
public double getHealthD()
public void setHealthD(double health)
public double getMaxHealthD()
public void addPotionEffect(org.spongepowered.api.potion.PotionEffect potionEffect, boolean force)
public void addPotionEffects(Collection<org.spongepowered.api.potion.PotionEffect> potionEffects, boolean force)
public void removePotionEffect(org.spongepowered.api.potion.PotionEffectType potionEffectType)
public boolean hasPotionEffect(org.spongepowered.api.potion.PotionEffectType potionEffectType)
public List<org.spongepowered.api.potion.PotionEffect> getPotionEffects()
public Optional<org.spongepowered.api.entity.living.Living> getLastAttackerAPI()
public double getEyeHeightD()
public com.flowpowered.math.vector.Vector3d getEyeLocation()
public int getRemainingAir()
public void setRemainingAir(int air)
public int getMaxAir()
getMaxAir
in interface IMixinEntityLivingBase
public void setMaxAir(int air)
setMaxAir
in interface IMixinEntityLivingBase
public double getLastDamage()
getLastDamage
in interface IMixinEntityLivingBase
public void setLastDamage(double damage)
setLastDamage
in interface IMixinEntityLivingBase
public int getInvulnerabilityTicks()
public void setInvulnerabilityTicks(int ticks)
public int getMaxInvulnerabilityTicks()
public void setMaxInvulnerabilityTicks(int ticks)
public String getCustomName()
public void setCustomName(String name)
public boolean isCustomNameVisible()
public void setCustomNameVisible(boolean visible)
public boolean isAPIInvisible()
public void setAPIInvisible(boolean invisible)
public void readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
MixinEntity
readFromNbt
in interface IMixinEntity
readFromNbt
in class MixinEntity
compound
- The SpongeData compound to read frompublic void writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
MixinEntity
writeToNbt
in interface IMixinEntity
writeToNbt
in class MixinEntity
compound
- The SpongeData compound to write topublic org.spongepowered.api.text.Text getTeamRepresentation()
getTeamRepresentation
in interface org.spongepowered.api.scoreboard.TeamMember
public org.spongepowered.api.data.manipulator.mutable.entity.DamageableData getMortalData()
getMortalData
in interface org.spongepowered.api.entity.living.Living
public org.spongepowered.api.data.manipulator.mutable.entity.HealthData getHealthData()
getHealthData
in interface org.spongepowered.api.entity.living.Living
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
toContainer
in class MixinEntity
public void onDeathSendEntityState(net.minecraft.world.World world, net.minecraft.entity.Entity self, byte state)