public class EntityLeashKnot extends EntityHanging
facingDirection, hangingPosition
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world
Constructor and Description |
---|
EntityLeashKnot(World worldIn) |
EntityLeashKnot(World worldIn,
BlockPos hangingPositionIn) |
Modifier and Type | Method and Description |
---|---|
static EntityLeashKnot |
createKnot(World worldIn,
BlockPos fence) |
float |
getEyeHeight() |
int |
getHeightPixels() |
static EntityLeashKnot |
getKnotForPosition(World worldIn,
BlockPos pos) |
int |
getWidthPixels() |
boolean |
isInRangeToRenderDist(double distance)
Checks if the entity is in range to render.
|
void |
onBroken(Entity brokenEntity)
Called when this entity is broken.
|
boolean |
onValidSurface()
checks to make sure painting can be placed there
|
void |
playPlaceSound() |
boolean |
processInitialInteract(EntityPlayer player,
EnumHand hand) |
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setPosition(double x,
double y,
double z)
Sets the x,y,z of the entity from the given parameters.
|
protected void |
updateBoundingBox()
Updates the entity bounding box based on current facing
|
void |
updateFacingWithBoundingBox(EnumFacing facingDirectionIn)
Updates facing and bounding box based on it
|
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
boolean |
writeToNBTOptional(NBTTagCompound compound)
Either write this entity to the NBT tag given and return true, or return false without doing anything.
|
addVelocity, attackEntityFrom, canBeCollidedWith, entityDropItem, entityInit, getHangingPosition, getHorizontalFacing, getMirroredYaw, getRotatedYaw, hitByEntity, move, onStruckByLightning, onUpdate, shouldSetPosAfterLoading
addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBePushed, canBeRidden, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, dismountRidingEntity, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, equals, extinguish, fall, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCapability, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotationYawHead, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCapability, hasCustomName, hashCode, hasNoGravity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setBeenAttacked, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndRotationDirect, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, spawnRunningParticles, startRiding, startRiding, toString, turn, updateFallState, updatePassenger, updateRidden, verifyExplosion, writeToNBT, writeToNBTAtomically
public EntityLeashKnot(World worldIn)
public void setPosition(double x, double y, double z)
setPosition
in class EntityHanging
protected void updateBoundingBox()
updateBoundingBox
in class EntityHanging
public void updateFacingWithBoundingBox(EnumFacing facingDirectionIn)
updateFacingWithBoundingBox
in class EntityHanging
public int getWidthPixels()
getWidthPixels
in class EntityHanging
public int getHeightPixels()
getHeightPixels
in class EntityHanging
public float getEyeHeight()
getEyeHeight
in class Entity
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
public void onBroken(Entity brokenEntity)
onBroken
in class EntityHanging
public boolean writeToNBTOptional(NBTTagCompound compound)
writeToNBTOptional
in class Entity
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityHanging
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityHanging
public boolean processInitialInteract(EntityPlayer player, EnumHand hand)
processInitialInteract
in class Entity
public boolean onValidSurface()
onValidSurface
in class EntityHanging
public static EntityLeashKnot createKnot(World worldIn, BlockPos fence)
public static EntityLeashKnot getKnotForPosition(World worldIn, BlockPos pos)
public void playPlaceSound()
playPlaceSound
in class EntityHanging