Package btw.entity.mechanical.source
Class WaterWheelEntity
java.lang.Object
net.minecraft.src.Entity
api.entity.mechanical.MechanicalPowerSourceEntity
api.entity.mechanical.MechanicalPowerSourceEntityHorizontal
btw.entity.mechanical.source.WaterWheelEntity
- All Implemented Interfaces:
EntityWithCustomPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final intstatic final floatstatic final intstatic final floatFields inherited from class api.entity.mechanical.MechanicalPowerSourceEntityHorizontal
alignedToXFields 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
ConstructorsConstructorDescriptionWaterWheelEntity(World world) WaterWheelEntity(World world, double x, double y, double z, boolean bIAligned) -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidprotected voidfloatgetDepth()floatintintfloatgetWidth()static booleanisValidBlockForWaterWheelToOccupy(World world, int i, int j, int k) protected voidreadEntityFromNBT(NBTTagCompound nbttagcompound) (abstract) Protected helper method to read subclass entity data from NBT.booleanstatic booleanwaterWheelValidateAreaAroundBlock(World world, int i, int j, int k, boolean bIAligned) protected voidwriteEntityToNBT(NBTTagCompound nbttagcompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class api.entity.mechanical.MechanicalPowerSourceEntityHorizontal
getDeviceBounds, initBoundingBox, setDead, transferPowerStateToConnectedAxles, validateConnectedAxlesMethods inherited from class api.entity.mechanical.MechanicalPowerSourceEntity
attackEntityFrom, attractsLightning, canBeCollidedWith, canBePushed, canTriggerWalking, getBoundingBox, getCollisionBox, getRotationSpeed, getRotationSpeedScaled, getShadowSize, getTrackerUpdateFrequency, getTrackerViewDistance, getTrackMotion, isClearOfBlockingEntities, moveEntity, onClientRotationOctantChange, onFullUpdateServer, 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, 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, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, 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:
-
DEPTH
public static final float DEPTH- See Also:
-
MAX_DAMAGE
public static final int MAX_DAMAGE- See Also:
-
ROTATION_PER_TICK
public static final float ROTATION_PER_TICK- See Also:
-
TICKS_PER_FULL_UPDATE
public static final int TICKS_PER_FULL_UPDATE- See Also:
-
-
Constructor Details
-
WaterWheelEntity
-
WaterWheelEntity
-
-
Method Details
-
entityInit
protected void entityInit()- Overrides:
entityInitin classMechanicalPowerSourceEntity
-
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
-
getSpawnPacketForThisEntity
- Returns:
- Custom packet containing information for this entity to send from the server to the client
-
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
-
destroyWithDrop
public void destroyWithDrop()- Specified by:
destroyWithDropin classMechanicalPowerSourceEntity
-
validateAreaAroundDevice
public boolean validateAreaAroundDevice()- Specified by:
validateAreaAroundDevicein classMechanicalPowerSourceEntity
-
computeRotation
public float computeRotation()- Specified by:
computeRotationin classMechanicalPowerSourceEntity
-
waterWheelValidateAreaAroundBlock
public static boolean waterWheelValidateAreaAroundBlock(World world, int i, int j, int k, boolean bIAligned) -
isValidBlockForWaterWheelToOccupy
-