Package btw.entity
Class DynamiteEntity
java.lang.Object
net.minecraft.src.Entity
btw.entity.DynamiteEntity
- All Implemented Interfaces:
EntityWithCustomPacket,IProjectile
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintstatic final intFields 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
ConstructorsConstructorDescriptionDynamiteEntity(World world) DynamiteEntity(World world, double d, double d1, double d2, int iItemShiftedIndex) DynamiteEntity(World world, int iItemShiftedIndex) DynamiteEntity(World world, EntityLivingBase entityliving, int iItemShiftedIndex, boolean bLit) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfloatintintbooleanvoidonUpdate()Called to update the entity's position/logic.voidreadEntityFromNBT(NBTTagCompound nbttagcompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetThrowableHeading(double dVectorX, double dVectorY, double dVectorZ, float fSpeed, float fRandomFactorMultiplier) Similar to setArrowHeading, it's point the throwable entity to a x, y, z direction.booleanPartially disables server-side visibility tests for interacting with an entityprotected booleanvoidwriteEntityToNBT(NBTTagCompound nbttagcompound) (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, canAttackWithItem, canBeCollidedWith, canBePushed, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, 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, 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, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
TICKS_TO_DETONATE
public static final int TICKS_TO_DETONATE- See Also:
-
fuse
public int fuse -
itemShiftedIndex
public int itemShiftedIndex
-
-
Constructor Details
-
DynamiteEntity
-
DynamiteEntity
-
DynamiteEntity
public DynamiteEntity(World world, EntityLivingBase entityliving, int iItemShiftedIndex, boolean bLit) -
DynamiteEntity
-
-
Method Details
-
entityInit
protected void entityInit()- Specified by:
entityInitin classEntity
-
writeEntityToNBT
Description copied from class:Entity(abstract) Protected helper method to write subclass entity data to NBT.- Specified by:
writeEntityToNBTin classEntity
-
readEntityFromNBT
Description copied from class:Entity(abstract) Protected helper method to read subclass entity data from NBT.- Specified by:
readEntityFromNBTin classEntity
-
onUpdate
public void onUpdate()Description copied from class:EntityCalled to update the entity's position/logic. -
shouldSetPositionOnLoad
protected boolean shouldSetPositionOnLoad()- Overrides:
shouldSetPositionOnLoadin classEntity
-
setThrowableHeading
public void setThrowableHeading(double dVectorX, double dVectorY, double dVectorZ, float fSpeed, float fRandomFactorMultiplier) Description copied from interface:IProjectileSimilar to setArrowHeading, it's point the throwable entity to a x, y, z direction.- Specified by:
setThrowableHeadingin interfaceIProjectile
-
getTrackerViewDistance
public int getTrackerViewDistance()- Specified by:
getTrackerViewDistancein interfaceEntityWithCustomPacket
-
getTrackerUpdateFrequency
public int getTrackerUpdateFrequency()- Specified by:
getTrackerUpdateFrequencyin interfaceEntityWithCustomPacket
-
getTrackMotion
public boolean getTrackMotion()- Specified by:
getTrackMotionin interfaceEntityWithCustomPacket
-
shouldServerTreatAsOversized
public boolean shouldServerTreatAsOversized()Description copied from interface:EntityWithCustomPacketPartially disables server-side visibility tests for interacting with an entity- Specified by:
shouldServerTreatAsOversizedin interfaceEntityWithCustomPacket
-
getSpawnPacketForThisEntity
- Specified by:
getSpawnPacketForThisEntityin interfaceEntityWithCustomPacket- Returns:
- Custom packet containing information for this entity to send from the server to the client
-
getShadowSize
@Environment(CLIENT) public float getShadowSize()- Overrides:
getShadowSizein classEntity
-