public abstract class EntityHanging extends Entity
| Modifier and Type | Field and Description |
|---|---|
EnumFacing |
facingDirection |
protected BlockPos |
hangingPosition |
protected static java.util.function.Predicate<Entity> |
IS_HANGING_ENTITY |
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, world| Modifier | Constructor and Description |
|---|---|
protected |
EntityHanging(EntityType<?> type,
World p_i48561_2_) |
protected |
EntityHanging(EntityType<?> type,
World p_i48562_2_,
BlockPos p_i48562_3_) |
| 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) |
BlockPos |
getHangingPosition() |
abstract int |
getHeightPixels() |
EnumFacing |
getHorizontalFacing() |
float |
getMirroredYaw(Mirror transformMirror) |
float |
getRotatedYaw(Rotation transformRotation) |
abstract int |
getWidthPixels() |
boolean |
hitByEntity(Entity entityIn) |
void |
move(MoverType type,
double x,
double y,
double z) |
abstract void |
onBroken(Entity brokenEntity) |
void |
onStruckByLightning(EntityLightningBolt lightningBolt) |
boolean |
onValidSurface() |
abstract void |
playPlaceSound() |
void |
readAdditional(NBTTagCompound compound) |
protected void |
registerData() |
void |
setPosition(double x,
double y,
double z) |
protected boolean |
shouldSetPosAfterLoading() |
void |
tick() |
protected void |
updateBoundingBox() |
protected void |
updateFacingWithBoundingBox(EnumFacing facingDirectionIn) |
void |
writeAdditional(NBTTagCompound compound) |
addPassenger, addTag, addTrackingPlayer, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, baseTick, canBeAttackedWithItem, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fall, fillCrashReport, func_212321_a, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHighspeedSplashSound, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPassengers, getPermissionLevel, getPitch, getPitchYaw, getPortalCooldown, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotationYawHead, getScoreboardName, getServer, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getYaw, getYOffset, handleFluidAcceleration, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, ignoreItemEntityData, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPassenger, isPassenger, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isSwimming, isWet, lookAt, makeFlySound, markVelocityChanged, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onRemovedFromWorld, outOfWorld, performHurtAnimation, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, rayTrace, read, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setHeadRotation, setInvisible, setInvulnerable, setInWeb, setItemStackToSlot, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndRotationDirect, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, spawnRunningParticles, startRiding, startRiding, stopRiding, toString, updateFallState, updatePassenger, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSitgetCapability, getCapabilityprotected static final java.util.function.Predicate<Entity> IS_HANGING_ENTITY
protected BlockPos hangingPosition
@Nullable public EnumFacing facingDirection
protected EntityHanging(EntityType<?> type, World p_i48561_2_)
protected EntityHanging(EntityType<?> type, World p_i48562_2_, BlockPos p_i48562_3_)
protected void registerData()
registerData 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 addVelocity(double x,
double y,
double z)
addVelocity in class Entitypublic void writeAdditional(NBTTagCompound compound)
writeAdditional in class Entitypublic void readAdditional(NBTTagCompound compound)
readAdditional 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