Package net.minecraft.src
Class EntityFX
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityFX
- Direct Known Subclasses:
CindersFX,EntityAuraFX,EntityBreakingFX,EntityBubbleFX,EntityCloudFX,EntityCrit2FX,EntityCritFX,EntityDiggingFX,EntityDropParticleFX,EntityEnchantmentTableParticleFX,EntityExplodeFX,EntityFireworkOverlayFX,EntityFireworkSparkFX,EntityFireworkStarterFX,EntityFlameFX,EntityFootStepFX,EntityHeartFX,EntityHugeExplodeFX,EntityLargeExplodeFX,EntityLavaFX,EntityNoteFX,EntityPickupFX,EntityPortalFX,EntityRainFX,EntityReddustFX,EntitySmokeFX,EntitySnowShovelFX,EntitySpellParticleFX,EntitySuspendFX,SmallFlameFX,WhiteSmokeFX
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doublestatic doublestatic doubleintfloatParticle alphafloatThe blue amount of color.floatfloatThe green amount of color.The icon field from which the given particle pulls its texture.intfloatThe red amount of color.floatintintfloatfloatFields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf returns false, the item will not inflict any damage against entities.protected booleanreturns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling cropsprotected voidfloatintfloatfloatmultipleParticleScaleBy(float par1) multiplyVelocity(float par1) voidvoidonUpdate()Called to update the entity's position/logic.voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidrenderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7) voidsetAlphaF(float par1) Sets the particle alpha (float)voidsetParticleIcon(Icon par1Icon) voidsetParticleTextureIndex(int par1) Public method to set private field particleTextureIndex.voidsetRBGColorF(float par1, float par2, float par3) toString()voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, attackEntityFrom, attractsLightning, canBeCollidedWith, canBePushed, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityName, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPortalCooldown, getRotationYawHead, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, interactFirst, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, kill, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
particleTextureIndexX
public int particleTextureIndexX -
particleTextureIndexY
public int particleTextureIndexY -
particleTextureJitterX
public float particleTextureJitterX -
particleTextureJitterY
public float particleTextureJitterY -
particleAge
public int particleAge -
particleMaxAge
public int particleMaxAge -
particleScale
public float particleScale -
particleGravity
public float particleGravity -
particleRed
public float particleRedThe red amount of color. Used as a percentage, 1.0 = 255 and 0.0 = 0. -
particleGreen
public float particleGreenThe green amount of color. Used as a percentage, 1.0 = 255 and 0.0 = 0. -
particleBlue
public float particleBlueThe blue amount of color. Used as a percentage, 1.0 = 255 and 0.0 = 0. -
particleAlpha
public float particleAlphaParticle alpha -
particleIcon
The icon field from which the given particle pulls its texture. -
interpPosX
public static double interpPosX -
interpPosY
public static double interpPosY -
interpPosZ
public static double interpPosZ
-
-
Constructor Details
-
EntityFX
-
EntityFX
public EntityFX(World par1World, double par2, double par4, double par6, double par8, double par10, double par12)
-
-
Method Details
-
multiplyVelocity
-
multipleParticleScaleBy
-
setRBGColorF
public void setRBGColorF(float par1, float par2, float par3) -
setAlphaF
public void setAlphaF(float par1) Sets the particle alpha (float) -
getRedColorF
public float getRedColorF() -
getGreenColorF
public float getGreenColorF() -
getBlueColorF
public float getBlueColorF() -
canTriggerWalking
protected boolean canTriggerWalking()returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling crops- Overrides:
canTriggerWalkingin classEntity
-
entityInit
protected void entityInit()- Specified by:
entityInitin classEntity
-
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
renderParticle
public void renderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7) -
getFXLayer
public int getFXLayer() -
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Specified by:
writeEntityToNBTin classEntity
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Specified by:
readEntityFromNBTin classEntity
-
setParticleIcon
-
setParticleTextureIndex
public void setParticleTextureIndex(int par1) Public method to set private field particleTextureIndex. -
nextTextureIndexX
public void nextTextureIndexX() -
canAttackWithItem
public boolean canAttackWithItem()If returns false, the item will not inflict any damage against entities.- Overrides:
canAttackWithItemin classEntity
-
toString
-