Package net.minecraft.src
Class EntityLeashKnot
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityHanging
net.minecraft.src.EntityLeashKnot
-
Field Summary
Fields inherited from class net.minecraft.src.EntityHanging
hangingDirection, xPosition, yPosition, zPositionFields 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
ConstructorsConstructorDescriptionEntityLeashKnot(World par1World) EntityLeashKnot(World par1World, int par2, int par3, int par4) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic EntityLeashKnotfunc_110129_a(World par0World, int par1, int par2, int par3) intstatic EntityLeashKnotgetKnotForBlock(World par0World, int par1, int par2, int par3) intbooleaninteractFirst(EntityPlayer par1EntityPlayer) First layer of player interactionbooleanisInRangeToRenderDist(double par1) Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distancevoidCalled when this entity is broken.booleanchecks to make sure painting can be placed therevoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetDirection(int par1) voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.booleanwriteToNBTOptional(NBTTagCompound par1NBTTagCompound) Either write this entity to the NBT tag given and return true, or return false without doing anything.Methods inherited from class net.minecraft.src.EntityHanging
addVelocity, attackEntityFrom, canBeCollidedWith, hitByEntity, moveEntity, onUpdate, shouldSetPosAfterLoading, shouldSetPositionOnLoadMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, appliesConstantForceWhenRidingBoat, applyEntityCollision, attractsLightning, canAttackWithItem, 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, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, initComponents, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, 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, 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, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT
-
Constructor Details
-
EntityLeashKnot
-
EntityLeashKnot
-
-
Method Details
-
entityInit
protected void entityInit()- Overrides:
entityInitin classEntityHanging
-
setDirection
public void setDirection(int par1) - Overrides:
setDirectionin classEntityHanging
-
getWidthPixels
public int getWidthPixels()- Specified by:
getWidthPixelsin classEntityHanging
-
getHeightPixels
public int getHeightPixels()- Specified by:
getHeightPixelsin classEntityHanging
-
isInRangeToRenderDist
public boolean isInRangeToRenderDist(double par1) Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distance- Overrides:
isInRangeToRenderDistin classEntity
-
onBroken
Called when this entity is broken. Entity parameter may be null.- Specified by:
onBrokenin classEntityHanging
-
writeToNBTOptional
Either write this entity to the NBT tag given and return true, or return false without doing anything. If this returns false the entity is not saved on disk. Ridden entities return false here as they are saved with their rider.- Overrides:
writeToNBTOptionalin classEntity
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityHanging
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityHanging
-
interactFirst
First layer of player interaction- Overrides:
interactFirstin classEntity
-
onValidSurface
public boolean onValidSurface()checks to make sure painting can be placed there- Overrides:
onValidSurfacein classEntityHanging
-
func_110129_a
-
getKnotForBlock
-