public class VengeanceSpirit extends EntityNoMob implements org.cyclops.cyclopscore.config.configurable.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.
|
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDexperienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, HAND_STATES, hurtTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_189513_ar, fireResistance, firstUpdate, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj| 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.
|
static void |
addToBlacklistIMC(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,
net.minecraft.util.math.BlockPos blockPos)
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'
|
protected void |
collideWithNearbyEntities() |
protected void |
dropLoot(boolean wasRecentlyHit,
int lootingModifier,
net.minecraft.util.DamageSource damageSource) |
void |
entityInit() |
net.minecraft.nbt.NBTTagCompound |
func_189511_e(net.minecraft.nbt.NBTTagCompound tag) |
protected net.minecraft.util.SoundEvent |
getAmbientSound() |
int |
getBuildupDuration()
Get the remaining life.
|
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<?> |
getConfig() |
net.minecraft.entity.EnumCreatureAttribute |
getCreatureAttribute() |
protected net.minecraft.util.SoundEvent |
getDeathSound() |
int |
getFrozenDuration()
Get the frozen duration.
|
net.minecraft.entity.EntityLivingBase |
getInnerEntity()
Get the inner entity.
|
java.lang.String |
getLocalizedInnerEntityName()
Get the localized name of the inner entity.
|
protected net.minecraft.util.ResourceLocation |
getLootTable() |
java.lang.String |
getPlayerId()
Get the playerId.
|
java.lang.String |
getPlayerName()
Get the playerName.
|
java.util.UUID |
getPlayerUUID()
Get the player UUID or null.
|
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 |
handleWaterMovement() |
boolean |
isEnabledVengeance(net.minecraft.entity.player.EntityPlayer player)
If the given player is vengeanced by this spirit
|
boolean |
isEntityInvulnerable(net.minecraft.util.DamageSource damageSource) |
boolean |
isFrozen()
If this spirit is frozen.
|
boolean |
isGlobalVengeance()
Is this spirit globally vengeancable.
|
boolean |
isMovementBlocked() |
boolean |
isPlayer() |
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()
Called frequently so the entity can update its state every tick as required.
|
void |
onStruckByLightning(net.minecraft.entity.effect.EntityLightningBolt lightning) |
void |
playSound(net.minecraft.util.SoundEvent soundIn,
float volume,
float pitch) |
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 |
setPlayerId(java.lang.String playerId)
Set the playerId.
|
void |
setPlayerName(java.lang.String playerName)
Set the playerName.
|
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,
net.minecraft.util.math.BlockPos blockPos,
int area)
Spawn a random vengeance spirit in the given area.
|
attackEntityFrom, canDropLoot, getBlockPathWeight, getCanSpawnHere, getFallSound, getHurtSound, getSoundCategory, getSplashSound, getSwimSound, isValidLightLevel, onUpdatedetachHome, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedStatecanAttackClass, canBeLeashedTo, canBeSteered, canDespawn, canEquipItem, canPickUpLoot, clearLeashed, createBodyHelper, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getExperiencePoints, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getNewNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, initEntityAI, isAIDisabled, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playHurtSound, playLivingSound, processInitialInteract, processInteract, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashedToEntity, setLeftHanded, setMoveForward, setMoveStrafing, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateAITasks, updateDistance, updateEntityActionState, updateEquipmentIfNeeded, writeEntityToNBTaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attemptTeleport, canBeHitWithPotion, canBreatheUnderwater, clearActivePotions, collideWithEntity, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, fall, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, handleJumpLava, handleJumpWater, hasCapability, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, moveEntityWithHeading, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, performHurtAnimation, playEquipSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddChatMessage, addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canCommandSenderUseCommand, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTriggerWalking, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_189512_bd, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLowestRidingEntity, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, hasCustomName, hashCode, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, moveEntity, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onKillEntity, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, verifyExplosion, writeToNBTAtomically, 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 net.minecraft.nbt.NBTTagCompound func_189511_e(net.minecraft.nbt.NBTTagCompound tag)
func_189511_e in class net.minecraft.entity.Entitypublic void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tag)
readEntityFromNBT in class net.minecraft.entity.EntityLivingprotected void applyEntityAttributes()
applyEntityAttributes in class EntityNoMobprotected net.minecraft.util.ResourceLocation getLootTable()
getLootTable in class net.minecraft.entity.EntityLivingprotected float getSoundPitch()
getSoundPitch in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.entity.EnumCreatureAttribute getCreatureAttribute()
getCreatureAttribute in class net.minecraft.entity.EntityLivingBasepublic boolean isEntityInvulnerable(net.minecraft.util.DamageSource damageSource)
isEntityInvulnerable in class net.minecraft.entity.Entitypublic boolean attackEntityAsMob(net.minecraft.entity.Entity entity)
attackEntityAsMob in class EntityNoMobprotected void dropLoot(boolean wasRecentlyHit,
int lootingModifier,
net.minecraft.util.DamageSource damageSource)
dropLoot in class net.minecraft.entity.EntityLivingpublic void setDead()
setDead in class net.minecraft.entity.Entitypublic boolean isMovementBlocked()
isMovementBlocked in class net.minecraft.entity.EntityLivingBasepublic void onLivingUpdate()
EntityNoMobonLivingUpdate in class EntityNoMobpublic void playSound(net.minecraft.util.SoundEvent soundIn,
float volume,
float pitch)
playSound in class net.minecraft.entity.Entitypublic boolean isVisible()
protected void collideWithNearbyEntities()
collideWithNearbyEntities in class net.minecraft.entity.EntityLivingBasepublic 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 java.lang.String getPlayerId()
public java.util.UUID getPlayerUUID()
public boolean isPlayer()
isPlayer in class net.minecraft.entity.EntityLivingBasepublic void setPlayerId(java.lang.String playerId)
playerId - The playerId.public java.lang.String getPlayerName()
public void setPlayerName(java.lang.String playerName)
playerName - The playerName.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,
net.minecraft.util.math.BlockPos blockPos)
world - The world.blockPos - The position.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, net.minecraft.util.math.BlockPos blockPos, int area)
world - The world.blockPos - The position.area - The radius in which the spawn can occur.public java.lang.String getLocalizedInnerEntityName()
protected net.minecraft.util.SoundEvent getDeathSound()
getDeathSound in class EntityNoMobprotected net.minecraft.util.SoundEvent getAmbientSound()
getAmbientSound in class net.minecraft.entity.EntityLivingpublic static void addToBlacklist(java.lang.Class<? extends net.minecraft.entity.EntityLivingBase> clazz)
clazz - The root class that will be blocked from spiritation.public static void addToBlacklistIMC(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 org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<?> getConfig()
getConfig in interface org.cyclops.cyclopscore.config.configurable.IConfigurablepublic boolean handleWaterMovement()
handleWaterMovement in class net.minecraft.entity.Entity