Package btw.entity.mechanical.source
Class VerticalWindMillEntity
java.lang.Object
net.minecraft.src.Entity
api.entity.mechanical.MechanicalPowerSourceEntity
btw.entity.mechanical.source.VerticalWindMillEntity
- All Implemented Interfaces:
EntityWithCustomPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatprotected intstatic final floatFields inherited from class api.entity.mechanical.MechanicalPowerSourceEntity
currentDamage, fullUpdateTickCount, providingPower, rockDirection, rotation, timeSinceHitFields 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
ConstructorsConstructorDescriptionVerticalWindMillEntity(World world) VerticalWindMillEntity(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclientNotifyGearboxOfOverpoweredOctantChangeInDirection(int iCenterI, int iCenterJ, int iCenterK, int iFacing) floatvoidprotected voidintgetBladeColor(int iBladeIndex) floatgetDepth()floatintintfloatgetWidth()voidbooleaninteractFirst(EntityPlayer player) First layer of player interactionstatic booleanisValidBlockForWindMillToOccupy(World world, int i, int j, int k) protected voidprotected voidvoidonStruckByLightning(EntityLightningBolt par1EntityLightningBolt) Called when a lightning bolt hits the entity.protected voidreadEntityFromNBT(NBTTagCompound nbttagcompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetBladeColor(int iBladeIndex, int iColor) voidsetDead()Will get destroyed next tick.voidbooleanprotected booleanstatic booleanwindMillValidateAreaAroundBlock(World world, int i, int j, int k) protected voidwriteEntityToNBT(NBTTagCompound nbttagcompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class api.entity.mechanical.MechanicalPowerSourceEntity
attackEntityFrom, attractsLightning, canBeCollidedWith, canBePushed, canTriggerWalking, getBoundingBox, getCollisionBox, getRotationSpeed, getRotationSpeedScaled, getShadowSize, getTrackerUpdateFrequency, getTrackerViewDistance, getTrackMotion, isClearOfBlockingEntities, moveEntity, onUpdate, performHurtAnimation, setFire, setPositionAndRotation2, setRotationSpeed, setRotationSpeedScaled, shouldServerTreatAsOversized, shouldSetPositionOnLoadMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, canAttackWithItem, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, 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, 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, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, outOfUpdateRangeUpdate, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setEating, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
HEIGHT
public static final float HEIGHT- See Also:
-
WIDTH
public static final float WIDTH- See Also:
-
overpowerTimer
protected int overpowerTimer
-
-
Constructor Details
-
VerticalWindMillEntity
-
VerticalWindMillEntity
-
-
Method Details
-
entityInit
protected void entityInit()- Overrides:
entityInitin classMechanicalPowerSourceEntity
-
getBladeColor
public int getBladeColor(int iBladeIndex) -
setBladeColor
public void setBladeColor(int iBladeIndex, int iColor) -
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
-
interactFirst
Description copied from class:EntityFirst layer of player interaction- Overrides:
interactFirstin classEntity
-
setDead
public void setDead()Description copied from class:EntityWill get destroyed next tick. -
onStruckByLightning
Description copied from class:EntityCalled when a lightning bolt hits the entity.- Overrides:
onStruckByLightningin classEntity
-
getWidth
public float getWidth()- Specified by:
getWidthin classMechanicalPowerSourceEntity
-
getHeight
public float getHeight()- Specified by:
getHeightin classMechanicalPowerSourceEntity
-
getDepth
public float getDepth()- Specified by:
getDepthin classMechanicalPowerSourceEntity
-
getMaxDamage
public int getMaxDamage()- Specified by:
getMaxDamagein classMechanicalPowerSourceEntity
-
getTicksPerFullUpdate
public int getTicksPerFullUpdate()- Specified by:
getTicksPerFullUpdatein classMechanicalPowerSourceEntity
-
onFullUpdateServer
protected void onFullUpdateServer()- Overrides:
onFullUpdateServerin classMechanicalPowerSourceEntity
-
destroyWithDrop
public void destroyWithDrop()- Specified by:
destroyWithDropin classMechanicalPowerSourceEntity
-
validateAreaAroundDevice
public boolean validateAreaAroundDevice()- Specified by:
validateAreaAroundDevicein classMechanicalPowerSourceEntity
-
computeRotation
public float computeRotation()- Specified by:
computeRotationin classMechanicalPowerSourceEntity
-
validateConnectedAxles
protected boolean validateConnectedAxles()- Specified by:
validateConnectedAxlesin classMechanicalPowerSourceEntity
-
transferPowerStateToConnectedAxles
public void transferPowerStateToConnectedAxles()- Specified by:
transferPowerStateToConnectedAxlesin classMechanicalPowerSourceEntity
-
onClientRotationOctantChange
protected void onClientRotationOctantChange()- Overrides:
onClientRotationOctantChangein classMechanicalPowerSourceEntity
-
getSpawnPacketForThisEntity
- Returns:
- Custom packet containing information for this entity to send from the server to the client
-
clientNotifyGearboxOfOverpoweredOctantChangeInDirection
protected void clientNotifyGearboxOfOverpoweredOctantChangeInDirection(int iCenterI, int iCenterJ, int iCenterK, int iFacing) -
windMillValidateAreaAroundBlock
-
isValidBlockForWindMillToOccupy
-
initBoundingBox
public void initBoundingBox()- Specified by:
initBoundingBoxin classMechanicalPowerSourceEntity
-
getDeviceBounds
- Specified by:
getDeviceBoundsin classMechanicalPowerSourceEntity
-