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 net.minecraft.util.ResourceLocation |
DEFAULT_L10N_KEY
The default I18N key for when no inner entity exists.
|
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.
|
static net.minecraft.network.datasync.DataParameter<java.lang.Integer> |
WATCHERID_BUILDUP |
static net.minecraft.network.datasync.DataParameter<java.lang.Integer> |
WATCHERID_FROZENDURATION |
static net.minecraft.network.datasync.DataParameter<java.lang.Integer> |
WATCHERID_GLOBALVENGEANCE |
static net.minecraft.network.datasync.DataParameter<java.lang.String> |
WATCHERID_INNER |
static net.minecraft.network.datasync.DataParameter<java.lang.Integer> |
WATCHERID_ISSWARM |
static net.minecraft.network.datasync.DataParameter<java.lang.String> |
WATCHERID_PLAYERID |
static net.minecraft.network.datasync.DataParameter<java.lang.String> |
WATCHERID_PLAYERNAME |
static net.minecraft.network.datasync.DataParameter<java.lang.Integer> |
WATCHERID_REMAININGLIFE |
static net.minecraft.network.datasync.DataParameter<java.lang.Integer> |
WATCHERID_SWARMTIER |
static net.minecraft.network.datasync.DataParameter<java.lang.String> |
WATCHERID_VENGEANCEPLAYERS |
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDexperienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, 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, updateBlocked, velocityChanged, width, world| Constructor and Description |
|---|
VengeanceSpirit(net.minecraft.world.World world) |
VengeanceSpirit(net.minecraft.world.World world,
java.lang.String preferredInnerEntity)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntanglingPlayer(net.minecraft.entity.player.EntityPlayerMP player) |
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() |
boolean |
doesEntityNotTriggerPressurePlate() |
protected void |
dropLoot(boolean wasRecentlyHit,
int lootingModifier,
net.minecraft.util.DamageSource damageSource) |
void |
entityInit() |
static VengeanceSpirit |
fromNBT(net.minecraft.world.World world,
net.minecraft.nbt.NBTTagCompound spiritTag) |
protected net.minecraft.util.SoundEvent |
getAmbientSound() |
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<?> |
getConfig() |
net.minecraft.entity.EnumCreatureAttribute |
getCreatureAttribute() |
protected net.minecraft.util.SoundEvent |
getDeathSound() |
java.util.Set<net.minecraft.entity.player.EntityPlayerMP> |
getEntanglingPlayers() |
net.minecraft.entity.EntityLivingBase |
getInnerEntity()
Get the inner entity.
|
protected net.minecraft.util.ResourceLocation |
getLootTable() |
protected float |
getSoundPitch() |
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 |
isMovementBlocked() |
boolean |
isPlayer() |
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(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 |
setDead() |
void |
setEnabledVengeance(net.minecraft.entity.player.EntityPlayer player,
boolean enabled)
Enable vengeance of this spirit for the given player.
|
void |
setInnerEntity(net.minecraft.entity.EntityLivingBase innerEntity)
Set the inner entity;
|
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.
|
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound tag) |
attackEntityFrom, canDropLoot, getBlockPathWeight, getCanSpawnHere, getFallSound, getHurtSound, getSoundCategory, getSplashSound, getSwimSound, isPreventingPlayerRest, isValidLightLevel, onUpdatedetachHome, followLeashSpeed, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedStatecanAttackClass, canBeLeashedTo, canBeSteered, canDespawn, canEquipItem, canPassengerSteer, canPickUpLoot, clearLeashed, createBodyHelper, createNavigator, despawnEntity, dropEquipment, dropFewItems, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getExperiencePoints, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashHolder, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, initEntityAI, isAIDisabled, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playHurtSound, playLivingSound, processInitialInteract, processInteract, registerFixesMob, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateAITasks, updateDistance, updateEntityActionState, updateEquipmentIfNeeded, writeEntityToNBTaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canBeHitWithPotion, canBreatheUnderwater, clearActivePotions, collideWithEntity, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, fall, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, travel, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doWaterSplashEffect, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onInsideBlock, onKillEntity, playFlySound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBTAtomically, writeToNBTOptionalpublic static final net.minecraft.util.ResourceLocation DEFAULT_L10N_KEY
public static final int REMAININGLIFE_MIN
public static final int REMAININGLIFE_MAX
public static final net.minecraft.network.datasync.DataParameter<java.lang.String> WATCHERID_INNER
public static final net.minecraft.network.datasync.DataParameter<java.lang.Integer> WATCHERID_REMAININGLIFE
public static final net.minecraft.network.datasync.DataParameter<java.lang.Integer> WATCHERID_FROZENDURATION
public static final net.minecraft.network.datasync.DataParameter<java.lang.Integer> WATCHERID_GLOBALVENGEANCE
public static final net.minecraft.network.datasync.DataParameter<java.lang.String> WATCHERID_VENGEANCEPLAYERS
public static final net.minecraft.network.datasync.DataParameter<java.lang.Integer> WATCHERID_ISSWARM
public static final net.minecraft.network.datasync.DataParameter<java.lang.Integer> WATCHERID_SWARMTIER
public static final net.minecraft.network.datasync.DataParameter<java.lang.Integer> WATCHERID_BUILDUP
public static final net.minecraft.network.datasync.DataParameter<java.lang.String> WATCHERID_PLAYERID
public static final net.minecraft.network.datasync.DataParameter<java.lang.String> WATCHERID_PLAYERNAME
public VengeanceSpirit(net.minecraft.world.World world)
public VengeanceSpirit(net.minecraft.world.World world,
java.lang.String preferredInnerEntity)
world - The world.preferredInnerEntity - The inner entity name.public void entityInit()
entityInit in class net.minecraft.entity.EntityLivingpublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound tag)
writeToNBT 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,
@Nullable
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()
onLivingUpdate 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 boolean isPlayer()
isPlayer in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.entity.EntityLivingBase getInnerEntity()
public void setInnerEntity(net.minecraft.entity.EntityLivingBase innerEntity)
innerEntity - inner entitypublic 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 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.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.Entitypublic boolean doesEntityNotTriggerPressurePlate()
doesEntityNotTriggerPressurePlate in class net.minecraft.entity.Entitypublic static VengeanceSpirit fromNBT(net.minecraft.world.World world, net.minecraft.nbt.NBTTagCompound spiritTag)
public void addEntanglingPlayer(net.minecraft.entity.player.EntityPlayerMP player)
public java.util.Set<net.minecraft.entity.player.EntityPlayerMP> getEntanglingPlayers()