public class VengeanceSpirit extends net.minecraft.entity.monster.EntityMob implements IConfigurable
| Modifier and Type | Class and Description |
|---|---|
static class |
VengeanceSpirit.SpiritBlacklistChanged
The changed callback for the spirit blacklist.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_L10N_KEY
The default I18N key for when no inner entity exists.
|
static java.lang.String |
NBTKEY_INNER_SPIRIT
The NBT key used to store the inner entity name.
|
static int |
REMAININGLIFE_MAX
The maximum life duration in ticks the spirits should have.
|
static int |
REMAININGLIFE_MIN
The minimum life duration in ticks the spirits should have.
|
entityToAttack, field_110179_h, field_110181_i, fleeingTick, hasAttackeddefaultPitch, equipmentDropChances, experienceValue, livingSoundTime, numTicksToChaseTarget, targetTasks, tasksarrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
VengeanceSpirit(net.minecraft.world.World world)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFrozenDuration(int addFrozen)
Add a frozen duration.
|
static void |
addToBlacklist(java.lang.Class<? extends net.minecraft.entity.EntityLivingBase> clazz)
Add an entity class to the blacklist, every subinstance of this class will not
be spirited anymore.
|
protected void |
applyEntityAttributes() |
boolean |
attackEntityAsMob(net.minecraft.entity.Entity entity) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canEntityBeSeen(net.minecraft.entity.Entity entity) |
static boolean |
canSpawnNew(net.minecraft.world.World world,
double x,
double y,
double z)
Check if we can spawn a new vengeance spirit in the given location.
|
static boolean |
canSustain(net.minecraft.entity.EntityLivingBase entityLiving)
If the given entity can be 'spiritted'
|
static boolean |
canSustainClass(java.lang.Class<?> entityLivingClazz)
If the given entity class can be 'spiritted'
|
void |
entityInit() |
int |
getBuildupDuration()
Get the remaining life.
|
ExtendedConfig<?> |
getConfig() |
net.minecraft.entity.EnumCreatureAttribute |
getCreatureAttribute() |
protected java.lang.String |
getDeathSound() |
int |
getFrozenDuration()
Get the frozen duration.
|
net.minecraft.entity.EntityLivingBase |
getInnerEntity()
Get the inner entity.
|
protected java.lang.String |
getLivingSound() |
java.lang.String |
getLocalizedInnerEntityName()
Get the localized name of the inner entity.
|
int |
getRemainingLife()
Get the remaining life.
|
protected float |
getSoundPitch() |
int |
getSwarmTier()
Get the tier of swarm for this spirit.
|
java.lang.String[] |
getVengeancePlayers()
Get the vengeanced players.
|
boolean |
isEnabledVengeance(net.minecraft.entity.player.EntityPlayer player)
If the given player is vengeanced by this spirit
|
boolean |
isEntityInvulnerable() |
boolean |
isFrozen()
If this spirit is frozen.
|
boolean |
isGlobalVengeance()
Is this spirit globally vengeancable.
|
boolean |
isMovementBlocked() |
boolean |
isSwarm()
Is this spirit is a swarm.
|
boolean |
isVisible()
If this entity is visible to the current player
|
void |
onHit(double hitX,
double hitY,
double hitZ,
double impactMotionX,
double impactMotionY,
double impactMotionZ)
When this spirit is hit by a neutron.
|
void |
onLivingUpdate() |
void |
onStruckByLightning(net.minecraft.entity.effect.EntityLightningBolt lightning) |
void |
playSound(java.lang.String sound,
float volume,
float frequency) |
void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tag) |
protected static void |
setBlacklist(java.lang.String[] blacklist) |
void |
setBuildupDuration(int buildupDuration)
Set the remaining buildup time.
|
void |
setDead() |
void |
setEnabledVengeance(net.minecraft.entity.player.EntityPlayer player,
boolean enabled)
Enable vengeance of this spirit for the given player.
|
void |
setFrozenDuration(int frozenDuration)
Set the frozen duration.
|
void |
setGlobalVengeance(boolean globalVengeance)
Set if this spirit globally vengeancable.
|
void |
setInnerEntity(net.minecraft.entity.EntityLivingBase innerEntity)
Set the inner entity;
|
void |
setIsSwarm(boolean isSwarm)
Set if this spirit is a swarm.
|
void |
setRemainingLife(int remainingLife)
Set the remaining life.
|
void |
setSwarmTier(int swarmTier)
Set the tier of swarm this spirit should be.
|
void |
setVengeancePlayers(java.lang.String[] vengeancePlayers)
Set the vengeanced players.
|
static VengeanceSpirit |
spawnRandom(net.minecraft.world.World world,
int x,
int y,
int z,
int area)
Spawn a random vengeance spirit in the given area.
|
void |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tag) |
attackEntity, attackEntityFrom, findPlayerToAttack, func_146066_aG, func_146067_o, getBlockPathWeight, getCanSpawnHere, getHurtSound, getSplashSound, getSwimSound, isValidLightLevel, onUpdatedetachHome, func_110174_bM, func_142017_o, getEntityToAttack, getHomePosition, hasHome, hasPath, isMovementCeased, isWithinHomeDistance, isWithinHomeDistanceCurrentPosition, setHomeArea, setPathToEntity, setTarget, updateEntityActionState, updateLeashedState, updateWanderPathaddRandomArmor, allowLeashing, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enchantEquipment, faceEntity, func_110146_f, func_110163_bv, func_130225_q, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCommandSenderName, getCustomNameTag, getDropItem, getEntitySenses, getEquipmentInSlot, getExperiencePoints, getHeldItem, getJumpHelper, getLastActiveItems, getLeashed, getLeashedToEntity, getLookHelper, getMaxSafePointTries, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, hasCustomNameTag, interact, interactFirst, isAIEnabled, isNoDespawnRequired, onEntityUpdate, onSpawnWithEgg, playLivingSound, setAIMoveSpeed, setAlwaysRenderNameTag, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setCustomNameTag, setEquipmentDropChance, setLeashedToEntity, setMoveForward, spawnExplosionParticle, updateAITasksaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBreatheUnderwater, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, dropRareDrop, fall, func_110142_aN, func_142015_aE, func_152111_bt, func_152112_bu, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getArrowCountInEntity, getAttributeMap, getEntityAttribute, getEyeHeight, getHealth, getItemIcon, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSoundVolume, getSwingProgress, getTeam, getTotalArmorValue, handleHealthUpdate, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updateRiddenaddEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getFlag, getMaxInPortalTime, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getShadowSize, getTeleportDirection, getUniqueID, getYOffset, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic static final java.lang.String DEFAULT_L10N_KEY
public static final int REMAININGLIFE_MIN
public static final int REMAININGLIFE_MAX
public static final java.lang.String NBTKEY_INNER_SPIRIT
public VengeanceSpirit(net.minecraft.world.World world)
world - The world.public void entityInit()
entityInit in class net.minecraft.entity.EntityLivingpublic void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tag)
writeEntityToNBT in class net.minecraft.entity.EntityLivingpublic void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tag)
readEntityFromNBT in class net.minecraft.entity.EntityLivingprotected void applyEntityAttributes()
applyEntityAttributes in class net.minecraft.entity.monster.EntityMobprotected float getSoundPitch()
getSoundPitch in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.entity.EnumCreatureAttribute getCreatureAttribute()
getCreatureAttribute in class net.minecraft.entity.EntityLivingBasepublic boolean isEntityInvulnerable()
isEntityInvulnerable in class net.minecraft.entity.Entitypublic boolean attackEntityAsMob(net.minecraft.entity.Entity entity)
attackEntityAsMob in class net.minecraft.entity.monster.EntityMobpublic void setDead()
setDead in class net.minecraft.entity.Entitypublic boolean isMovementBlocked()
isMovementBlocked in class net.minecraft.entity.EntityLivingBasepublic void onLivingUpdate()
onLivingUpdate in class net.minecraft.entity.monster.EntityMobpublic boolean isVisible()
public boolean canBePushed()
canBePushed in class net.minecraft.entity.EntityLivingBasepublic boolean canBeCollidedWith()
canBeCollidedWith in class net.minecraft.entity.EntityLivingBasepublic void onStruckByLightning(net.minecraft.entity.effect.EntityLightningBolt lightning)
onStruckByLightning in class net.minecraft.entity.Entitypublic boolean canEntityBeSeen(net.minecraft.entity.Entity entity)
canEntityBeSeen in class net.minecraft.entity.EntityLivingBasepublic boolean isEnabledVengeance(net.minecraft.entity.player.EntityPlayer player)
player - the player.public void setEnabledVengeance(net.minecraft.entity.player.EntityPlayer player,
boolean enabled)
player - This player will be added to the target list.enabled - If vengeance should be enabledpublic net.minecraft.entity.EntityLivingBase getInnerEntity()
public void setInnerEntity(net.minecraft.entity.EntityLivingBase innerEntity)
innerEntity - inner entitypublic int getRemainingLife()
public void setRemainingLife(int remainingLife)
remainingLife - The remaining life.public int getBuildupDuration()
public void setBuildupDuration(int buildupDuration)
buildupDuration - The remaining life.public int getFrozenDuration()
public void setFrozenDuration(int frozenDuration)
frozenDuration - The frozen duration.public boolean isGlobalVengeance()
public void setGlobalVengeance(boolean globalVengeance)
globalVengeance - Is globally vengeancable.public boolean isSwarm()
public void setIsSwarm(boolean isSwarm)
isSwarm - Is a swarm.public int getSwarmTier()
public void setSwarmTier(int swarmTier)
swarmTier - The tier to set.public java.lang.String[] getVengeancePlayers()
public void setVengeancePlayers(java.lang.String[] vengeancePlayers)
vengeancePlayers - The vengeanced players by display name.public static boolean canSustain(net.minecraft.entity.EntityLivingBase entityLiving)
entityLiving - The entity to check.public static boolean canSustainClass(java.lang.Class<?> entityLivingClazz)
entityLivingClazz - The entity class to check.public static boolean canSpawnNew(net.minecraft.world.World world,
double x,
double y,
double z)
world - The world.x - X coordinate.y - Y coordinate.z - Z Coordinate.public void addFrozenDuration(int addFrozen)
addFrozen - Ticks to add frozen.public boolean isFrozen()
public void onHit(double hitX,
double hitY,
double hitZ,
double impactMotionX,
double impactMotionY,
double impactMotionZ)
hitX - Hit X.hitY - Hit Y.hitZ - Hit Z.impactMotionX - The motion speed for X.impactMotionY - The motion speed for Y.impactMotionZ - The motion speed for Z.public static VengeanceSpirit spawnRandom(net.minecraft.world.World world, int x, int y, int z, int area)
world - The world.x - The center X coordinate.y - The center Y coordinate.z - The center Z coordinate.area - The radius in which the spawn can occur.public java.lang.String getLocalizedInnerEntityName()
protected java.lang.String getDeathSound()
getDeathSound in class net.minecraft.entity.monster.EntityMobprotected java.lang.String getLivingSound()
getLivingSound in class net.minecraft.entity.EntityLivingpublic void playSound(java.lang.String sound,
float volume,
float frequency)
playSound in class net.minecraft.entity.Entitypublic static void addToBlacklist(java.lang.Class<? extends net.minecraft.entity.EntityLivingBase> clazz)
clazz - The root class that will be blocked from spiritation.protected static void setBlacklist(java.lang.String[] blacklist)
public ExtendedConfig<?> getConfig()
getConfig in interface IConfigurable