Class AbstractDecorationEntity

All Implemented Interfaces:
DataTracked, ScoreHolder, CommandOutput, Nameable, EntityLike
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 ciz
  • 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 c Lciz;c:Ljava/util/function/Predicate;
    • facing

      protected Direction facing
      Mappings:
      Namespace Name Mixin selector
      named facing Lnet/minecraft/entity/decoration/AbstractDecorationEntity;facing:Lnet/minecraft/util/math/Direction;
      intermediary field_7099 Lnet/minecraft/class_1530;field_7099:Lnet/minecraft/class_2350;
      official d Lciz;d:Lji;
  • 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> Lbsr;<init>(Lbsx;Ldcw;)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> Lciz;<init>(Lbsx;Ldcw;Ljd;)V
  • Method Details

    • 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 a Lciz;a(Lji;)V
    • updateAttachmentPosition

      protected final 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 p Lcix;p()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 Lciz;a(Ljd;Lji;)Lewx;
    • 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 s Lcix;s()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 B Lciz;B()Lewx;
    • 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 cH Lbsr;cH()Lji;
    • 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 C Lciz;C()V
    • dropStack

      public ItemEntity dropStack(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/item/ItemStack;F)Lnet/minecraft/entity/ItemEntity;
      intermediary method_5699 Lnet/minecraft/class_1297;method_5699(Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1542;
      official a Lbsr;a(Lcuq;F)Lcjh;
    • 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 Lbsr;a(Ldmm;)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 Lbsr;a(Ldkv;)F