public abstract class EntityHanging extends Entity
| Modifier and Type | Field and Description |
|---|---|
EnumFacing |
facingDirection |
protected BlockPos |
hangingPosition |
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, fireResistance, firstUpdate, 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, velocityChanged, width, worldObj| Constructor and Description |
|---|
EntityHanging(World worldIn) |
EntityHanging(World worldIn,
BlockPos hangingPositionIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVelocity(double x,
double y,
double z) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canBeCollidedWith() |
EntityItem |
entityDropItem(ItemStack stack,
float offsetY) |
protected void |
entityInit() |
BlockPos |
getHangingPosition() |
abstract int |
getHeightPixels() |
EnumFacing |
getHorizontalFacing() |
float |
getMirroredYaw(Mirror transformMirror) |
float |
getRotatedYaw(Rotation transformRotation) |
abstract int |
getWidthPixels() |
boolean |
hitByEntity(Entity entityIn) |
void |
moveEntity(double x,
double y,
double z) |
abstract void |
onBroken(Entity brokenEntity) |
void |
onStruckByLightning(EntityLightningBolt lightningBolt) |
void |
onUpdate() |
boolean |
onValidSurface() |
abstract void |
playPlaceSound() |
void |
readEntityFromNBT(NBTTagCompound compound) |
void |
setPosition(double x,
double y,
double z) |
protected boolean |
shouldSetPosAfterLoading() |
protected void |
updateBoundingBox() |
protected void |
updateFacingWithBoundingBox(EnumFacing facingDirectionIn) |
void |
writeEntityToNBT(NBTTagCompound compound) |
addChatMessage, addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBePushed, canBeRidden, canCommandSenderUseCommand, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTriggerWalking, 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, getEyeHeight, getFlag, getHeldEquipment, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, 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, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, 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, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, 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, updateFallState, updatePassenger, updateRidden, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptionalprotected BlockPos hangingPosition
@Nullable public EnumFacing facingDirection
public EntityHanging(World worldIn)
protected void entityInit()
entityInit in class Entityprotected void updateFacingWithBoundingBox(EnumFacing facingDirectionIn)
protected void updateBoundingBox()
public boolean onValidSurface()
public boolean canBeCollidedWith()
canBeCollidedWith in class Entitypublic boolean hitByEntity(Entity entityIn)
hitByEntity in class Entitypublic EnumFacing getHorizontalFacing()
getHorizontalFacing in class Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class Entitypublic void moveEntity(double x,
double y,
double z)
moveEntity in class Entitypublic void addVelocity(double x,
double y,
double z)
addVelocity in class Entitypublic void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT in class Entitypublic void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT in class Entitypublic abstract int getWidthPixels()
public abstract int getHeightPixels()
public abstract void onBroken(@Nullable
Entity brokenEntity)
public abstract void playPlaceSound()
public EntityItem entityDropItem(ItemStack stack, float offsetY)
entityDropItem in class Entityprotected boolean shouldSetPosAfterLoading()
shouldSetPosAfterLoading in class Entitypublic void setPosition(double x,
double y,
double z)
setPosition in class Entitypublic BlockPos getHangingPosition()
public float getRotatedYaw(Rotation transformRotation)
getRotatedYaw in class Entitypublic float getMirroredYaw(Mirror transformMirror)
getMirroredYaw in class Entitypublic void onStruckByLightning(EntityLightningBolt lightningBolt)
onStruckByLightning in class Entity