Package net.minecraft.entity.decoration
Class DecorationEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.decoration.DecorationEntity
- All Implemented Interfaces:
CommandSource
- Direct Known Subclasses:
ItemFrameEntity,LeadKnotEntity,PaintingEntity
public abstract class DecorationEntity extends Entity
- Mappings:
Namespace Name official unintermediary net/minecraft/class_1882named net/minecraft/entity/decoration/DecorationEntity
-
Field Summary
Fields Modifier and Type Field Description Directiondirectionprivate intfield_8045protected BlockPosposFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description DecorationEntity(World world)DecorationEntity(World world, BlockPos pos) -
Method Summary
Modifier and Type Method Description voidaddVelocity(double x, double y, double z)booleancollides()booleandamage(DamageSource source, float amount)voiddeserialize(CompoundTag tag)abstract intgetHeight()DirectiongetHorizontalDirection()BlockPosgetTilePos()abstract intgetWidth()booleanhandleAttack(Entity attacker)protected voidinitDataTracker()booleanisPosValid()private doublemethod_7723(int int2)abstract voidmethod_7725(Entity entity)private voidmethod_7730()voidmove(double velocityX, double velocityY, double velocityZ)voidserialize(CompoundTag tag)protected voidsetDirection(Direction direction)protected booleanshouldSetPositionOnLoad()voidtick()voidupdatePosition(double x, double y, double z)Methods inherited from class net.minecraft.entity.Entity
afterSpawn, animateDamage, attemptSprintingParticles, baseTick, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, destroy, doesNotCollide, doesRenderOnFire, equals, equip, extinguish, fall, fromClientTag, fromTag, getAir, getArmorStacks, getBlastResistance, getBlockPos, getBoundingBox, getBox, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeadRotation, getHeightOffset, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getMountedHeightOffset, getName, getPos, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getSplashSound, getSwimSound, getTranslationKey, getUuid, getWorld, handleFallDamage, handleStatus, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAlive, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isPushable, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, kill, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6984, method_6985, method_6994, method_6998, method_7008, method_7020, method_7049, method_7051, method_7058, onLightningStrike, onPlayerCollision, onSwimmingStart, openInventory, playSound, playStepSound, populateCrashReport, pushAwayFrom, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToTag, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setArmorSlot, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setHeadYaw, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSprinting, setStat, setSwimming, setVelocityClient, setWorld, setYaw, shouldRender, shouldRender, shouldRenderName, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, startRiding, teleportToDimension, tickFire, tickRiding, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePositionAndAngles, updateTrackedPositionAndAngles, writePlayerData
-
Field Details
-
field_8045
private int field_8045- Mappings:
Namespace Name Mixin selector official cLun;c:Iintermediary field_8045Lnet/minecraft/class_1882;field_8045:Inamed field_8045Lnet/minecraft/entity/decoration/DecorationEntity;field_8045:I
-
pos
- Mappings:
Namespace Name Mixin selector official aLun;a:Lcj;intermediary field_8043Lnet/minecraft/class_1882;field_8043:Lnet/minecraft/class_1372;named posLnet/minecraft/entity/decoration/DecorationEntity;pos:Lnet/minecraft/util/math/BlockPos;
-
direction
- Mappings:
Namespace Name Mixin selector official bLun;b:Lcq;intermediary field_8044Lnet/minecraft/class_1882;field_8044:Lnet/minecraft/class_1383;named directionLnet/minecraft/entity/decoration/DecorationEntity;direction:Lnet/minecraft/util/math/Direction;
-
-
Constructor Details
-
DecorationEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
DecorationEntity
- Mappings:
Namespace Name Mixin selector official <init>Lun;<init>(Ladm;Lcj;)Vintermediary <init>Lnet/minecraft/class_1882;<init>(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Vnamed <init>Lnet/minecraft/entity/decoration/DecorationEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official hLpk;h()Vintermediary method_7043Lnet/minecraft/class_1745;method_7043()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
setDirection
- Mappings:
Namespace Name Mixin selector official aLun;a(Lcq;)Vintermediary method_7724Lnet/minecraft/class_1882;method_7724(Lnet/minecraft/class_1383;)Vnamed setDirectionLnet/minecraft/entity/decoration/DecorationEntity;setDirection(Lnet/minecraft/util/math/Direction;)V
-
method_7730
private void method_7730()- Mappings:
Namespace Name Mixin selector official oLun;o()Vintermediary method_7730Lnet/minecraft/class_1882;method_7730()Vnamed method_7730Lnet/minecraft/entity/decoration/DecorationEntity;method_7730()V
-
method_7723
private double method_7723(int int2)- Mappings:
Namespace Name Mixin selector official aLun;a(I)Dintermediary method_7723Lnet/minecraft/class_1882;method_7723(I)Dnamed method_7723Lnet/minecraft/entity/decoration/DecorationEntity;method_7723(I)D
-
tick
public void tick() -
isPosValid
public boolean isPosValid()- Mappings:
Namespace Name Mixin selector official jLun;j()Zintermediary method_7726Lnet/minecraft/class_1882;method_7726()Znamed isPosValidLnet/minecraft/entity/decoration/DecorationEntity;isPosValid()Z
-
collides
public boolean collides() -
handleAttack
- Overrides:
handleAttackin classEntity- Mappings:
Namespace Name Mixin selector official lLpk;l(Lpk;)Zintermediary method_7054Lnet/minecraft/class_1745;method_7054(Lnet/minecraft/class_1745;)Znamed handleAttackLnet/minecraft/entity/Entity;handleAttack(Lnet/minecraft/entity/Entity;)Z
-
getHorizontalDirection
- Overrides:
getHorizontalDirectionin classEntity- Mappings:
Namespace Name Mixin selector official aPLpk;aP()Lcq;intermediary method_6962Lnet/minecraft/class_1745;method_6962()Lnet/minecraft/class_1383;named getHorizontalDirectionLnet/minecraft/entity/Entity;getHorizontalDirection()Lnet/minecraft/util/math/Direction;
-
damage
-
move
public void move(double velocityX, double velocityY, double velocityZ) -
addVelocity
public void addVelocity(double x, double y, double z)- Overrides:
addVelocityin classEntity- Mappings:
Namespace Name Mixin selector official gLpk;g(DDD)Vintermediary method_7037Lnet/minecraft/class_1745;method_7037(DDD)Vnamed addVelocityLnet/minecraft/entity/Entity;addVelocity(DDD)V
-
serialize
-
deserialize
- Specified by:
deserializein classEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
getWidth
public abstract int getWidth()- Mappings:
Namespace Name Mixin selector official lLun;l()Iintermediary method_7727Lnet/minecraft/class_1882;method_7727()Inamed getWidthLnet/minecraft/entity/decoration/DecorationEntity;getWidth()I
-
getHeight
public abstract int getHeight()- Mappings:
Namespace Name Mixin selector official mLun;m()Iintermediary method_7728Lnet/minecraft/class_1882;method_7728()Inamed getHeightLnet/minecraft/entity/decoration/DecorationEntity;getHeight()I
-
method_7725
- Mappings:
Namespace Name Mixin selector official bLun;b(Lpk;)Vintermediary method_7725Lnet/minecraft/class_1882;method_7725(Lnet/minecraft/class_1745;)Vnamed method_7725Lnet/minecraft/entity/decoration/DecorationEntity;method_7725(Lnet/minecraft/entity/Entity;)V
-
shouldSetPositionOnLoad
protected boolean shouldSetPositionOnLoad()- Overrides:
shouldSetPositionOnLoadin classEntity- Mappings:
Namespace Name Mixin selector official afLpk;af()Zintermediary method_6975Lnet/minecraft/class_1745;method_6975()Znamed shouldSetPositionOnLoadLnet/minecraft/entity/Entity;shouldSetPositionOnLoad()Z
-
updatePosition
public void updatePosition(double x, double y, double z)- Overrides:
updatePositionin classEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(DDD)Vintermediary method_6996Lnet/minecraft/class_1745;method_6996(DDD)Vnamed updatePositionLnet/minecraft/entity/Entity;updatePosition(DDD)V
-
getTilePos
- Mappings:
Namespace Name Mixin selector official nLun;n()Lcj;intermediary method_7729Lnet/minecraft/class_1882;method_7729()Lnet/minecraft/class_1372;named getTilePosLnet/minecraft/entity/decoration/DecorationEntity;getTilePos()Lnet/minecraft/util/math/BlockPos;
-