Class AbstractDecorationEntity

All Implemented Interfaces:
ComponentsAccess, DataTracked, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable
Direct Known Subclasses:
ItemFrameEntity, PaintingEntity

public abstract class AbstractDecorationEntity extends BlockAttachedEntity
Mappings:
Namespace Name
named net/minecraft/entity/decoration/AbstractDecorationEntity
intermediary net/minecraft/class_1530
official cqr
  • Field Details

    • PREDICATE

      protected static final Predicate<Entity> PREDICATE
      Mappings:
      Namespace Name Mixin selector
      named PREDICATE Lnet/minecraft/entity/decoration/AbstractDecorationEntity;PREDICATE:Ljava/util/function/Predicate;
      intermediary field_7098 Lnet/minecraft/class_1530;field_7098:Ljava/util/function/Predicate;
      official b Lcqr;b:Ljava/util/function/Predicate;
    • FACING

      private static final TrackedData<Direction> FACING
      Mappings:
      Namespace Name Mixin selector
      named FACING Lnet/minecraft/entity/decoration/AbstractDecorationEntity;FACING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_60665 Lnet/minecraft/class_1530;field_60665:Lnet/minecraft/class_2940;
      official c Lcqr;c:Lalh;
    • DEFAULT_FACING

      private static final Direction DEFAULT_FACING
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_FACING Lnet/minecraft/entity/decoration/AbstractDecorationEntity;DEFAULT_FACING:Lnet/minecraft/util/math/Direction;
      intermediary field_60666 Lnet/minecraft/class_1530;field_60666:Lnet/minecraft/class_2350;
      official d Lcqr;d:Ljh;
  • Constructor Details

    • AbstractDecorationEntity

      protected AbstractDecorationEntity(EntityType<? extends AbstractDecorationEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbzm;<init>(Lbzv;Ldmu;)V
    • AbstractDecorationEntity

      protected AbstractDecorationEntity(EntityType<? extends AbstractDecorationEntity> type, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/decoration/AbstractDecorationEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary <init> Lnet/minecraft/class_1530;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official <init> Lcqr;<init>(Lbzv;Ldmu;Ljb;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbzm;a(Lall$a;)V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Specified by:
      onTrackedDataSet in interface DataTracked
      Overrides:
      onTrackedDataSet in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onTrackedDataSet Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      intermediary method_5674 Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
      official a Lalk;a(Lalh;)V
    • getHorizontalFacing

      public Direction getHorizontalFacing()
      Overrides:
      getHorizontalFacing in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getHorizontalFacing Lnet/minecraft/entity/Entity;getHorizontalFacing()Lnet/minecraft/util/math/Direction;
      intermediary method_5735 Lnet/minecraft/class_1297;method_5735()Lnet/minecraft/class_2350;
      official cS Lbzm;cS()Ljh;
    • setFacingInternal

      protected void setFacingInternal(Direction facing)
      Mappings:
      Namespace Name Mixin selector
      named setFacingInternal Lnet/minecraft/entity/decoration/AbstractDecorationEntity;setFacingInternal(Lnet/minecraft/util/math/Direction;)V
      intermediary method_71770 Lnet/minecraft/class_1530;method_71770(Lnet/minecraft/class_2350;)V
      official a Lcqr;a(Ljh;)V
    • setFacing

      protected void setFacing(Direction facing)
      Mappings:
      Namespace Name Mixin selector
      named setFacing Lnet/minecraft/entity/decoration/AbstractDecorationEntity;setFacing(Lnet/minecraft/util/math/Direction;)V
      intermediary method_6892 Lnet/minecraft/class_1530;method_6892(Lnet/minecraft/class_2350;)V
      official b Lcqr;b(Ljh;)V
    • updateAttachmentPosition

      protected void updateAttachmentPosition()
      Specified by:
      updateAttachmentPosition in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named updateAttachmentPosition Lnet/minecraft/entity/decoration/BlockAttachedEntity;updateAttachmentPosition()V
      intermediary method_6895 Lnet/minecraft/class_9691;method_6895()V
      official e Lcqp;e()V
    • calculateBoundingBox

      protected abstract Box calculateBoundingBox(BlockPos pos, Direction side)
      Mappings:
      Namespace Name Mixin selector
      named calculateBoundingBox Lnet/minecraft/entity/decoration/AbstractDecorationEntity;calculateBoundingBox(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Box;
      intermediary method_59943 Lnet/minecraft/class_1530;method_59943(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_238;
      official a Lcqr;a(Ljb;Ljh;)Lfin;
    • canStayAttached

      public boolean canStayAttached()
      Specified by:
      canStayAttached in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named canStayAttached Lnet/minecraft/entity/decoration/BlockAttachedEntity;canStayAttached()Z
      intermediary method_6888 Lnet/minecraft/class_9691;method_6888()Z
      official f Lcqp;f()Z
    • getAttachmentBox

      protected Box getAttachmentBox()
      Mappings:
      Namespace Name Mixin selector
      named getAttachmentBox Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getAttachmentBox()Lnet/minecraft/util/math/Box;
      intermediary method_59941 Lnet/minecraft/class_1530;method_59941()Lnet/minecraft/class_238;
      official t Lcqr;t()Lfin;
    • onPlace

      public abstract void onPlace()
      Mappings:
      Namespace Name Mixin selector
      named onPlace Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onPlace()V
      intermediary method_6894 Lnet/minecraft/class_1530;method_6894()V
      official u Lcqr;u()V
    • dropStack

      public ItemEntity dropStack(ServerWorld world, ItemStack stack, float yOffset)
      Drops stack at the entity's position with the given Y offset.
      Overrides:
      dropStack in class Entity
      Returns:
      the spawned item entity, or null if the stack is empty or if called on the client
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named dropStack Lnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/ItemEntity;
      intermediary method_5699 Lnet/minecraft/class_1297;method_5699(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1542;
      official a Lbzm;a(Laub;Ldcv;F)Lcqz;
    • applyRotation

      public float applyRotation(BlockRotation rotation)
      Applies rotation to the entity's yaw.
      Overrides:
      applyRotation in class Entity
      Mappings:
      Namespace Name Mixin selector
      named applyRotation Lnet/minecraft/entity/Entity;applyRotation(Lnet/minecraft/util/BlockRotation;)F
      intermediary method_5832 Lnet/minecraft/class_1297;method_5832(Lnet/minecraft/class_2470;)F
      official a Lbzm;a(Ldwu;)F
    • applyMirror

      public float applyMirror(BlockMirror mirror)
      Applies mirror to the entity's yaw.
      Overrides:
      applyMirror in class Entity
      Mappings:
      Namespace Name Mixin selector
      named applyMirror Lnet/minecraft/entity/Entity;applyMirror(Lnet/minecraft/util/BlockMirror;)F
      intermediary method_5763 Lnet/minecraft/class_1297;method_5763(Lnet/minecraft/class_2415;)F
      official a Lbzm;a(Ldvd;)F