Package net.minecraft.src
Class EntityMinecartTNT
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityMinecart
net.minecraft.src.EntityMinecartTNT
-
Field Summary
Fields inherited from class net.minecraft.src.EntityMinecart
minecartItemToDropFields 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
ConstructorsConstructorDescriptionEntityMinecartTNT(World par1World) EntityMinecartTNT(World par1World, double par2, double par4, double par6) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexplodeCart(double par1) Makes the minecart explode.protected voidfall(float par1) Called when the mob is falling.intfloatgetBlockExplosionResistance(Explosion par1Explosion, World par2World, int par3, int par4, int par5, Block par6Block) Gets a block's resistance to this entity's explosion.intvoidhandleHealthUpdate(byte par1) voidignite()Ignites this TNT cart.booleanReturns true if the TNT minecart is ignited.voidkillMinecart(DamageSource par1DamageSource) voidonActivatorRailPass(int par1, int par2, int par3, boolean par4) Called every tick the minecart is on an activator rail.voidonUpdate()Called to update the entity's position/logic.protected voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.booleanshouldExplodeBlock(Explosion par1Explosion, World par2World, int par3, int par4, int par5, int par6, float par7) protected voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityMinecart
applyDrag, applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canCollideWithEntity, canTriggerWalking, createMinecart, entityInit, func_70489_a, func_70495_a, func_94088_b, func_95999_t, getBoundingBox, getCollisionBox, getDamage, getDefaultDisplayTileData, getDefaultDisplayTileOffset, getDisplayTile, getDisplayTileData, getDisplayTileOffset, getEntityName, getMountedYOffset, getRollingAmplitude, getRollingDirection, getShadowSize, hasDisplayTile, isInvNameLocalized, onBlockDispenserConsume, performHurtAnimation, setDamage, setDead, setDisplayTile, setDisplayTileData, setDisplayTileOffset, setHasDisplayTile, setMinecartName, setPositionAndRotation2, setRollingAmplitude, setRollingDirection, setVelocity, updateOnTrackMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, attractsLightning, canAttackWithItem, canEntityTriggerTripwire, canRenderOnFire, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getParts, getPortalCooldown, getRotationYawHead, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, 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, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setWorld, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Constructor Details
-
EntityMinecartTNT
-
EntityMinecartTNT
-
-
Method Details
-
getMinecartType
public int getMinecartType()- Specified by:
getMinecartTypein classEntityMinecart
-
getDefaultDisplayTile
- Overrides:
getDefaultDisplayTilein classEntityMinecart
-
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityMinecart
-
killMinecart
- Overrides:
killMinecartin classEntityMinecart
-
explodeCart
protected void explodeCart(double par1) Makes the minecart explode. -
fall
protected void fall(float par1) Called when the mob is falling. Calculates and applies fall damage. -
onActivatorRailPass
public void onActivatorRailPass(int par1, int par2, int par3, boolean par4) Called every tick the minecart is on an activator rail.- Overrides:
onActivatorRailPassin classEntityMinecart
-
handleHealthUpdate
public void handleHealthUpdate(byte par1) - Overrides:
handleHealthUpdatein classEntity
-
ignite
public void ignite()Ignites this TNT cart. -
func_94104_d
public int func_94104_d() -
isIgnited
public boolean isIgnited()Returns true if the TNT minecart is ignited. -
getBlockExplosionResistance
public float getBlockExplosionResistance(Explosion par1Explosion, World par2World, int par3, int par4, int par5, Block par6Block) Gets a block's resistance to this entity's explosion. Used to make rails immune to TNT minecarts' explosions and Wither skulls more destructive.- Overrides:
getBlockExplosionResistancein classEntity
-
shouldExplodeBlock
public boolean shouldExplodeBlock(Explosion par1Explosion, World par2World, int par3, int par4, int par5, int par6, float par7) - Overrides:
shouldExplodeBlockin classEntity
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityMinecart
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityMinecart
-