Class AbstractDecorationEntity

All Implemented Interfaces:
DataTracked, ScoreHolder, 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 cls
  • 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 Lcls;b: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 c Lcls;c:Ljm;
  • 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> Lbvj;<init>(Lbvq;Ldhh;)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> Lcls;<init>(Lbvq;Ldhh;Ljh;)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 Lcls;a(Ljm;)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 l Lclq;l()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 Lcls;a(Ljh;Ljm;)Lfbs;
    • 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 m Lclq;m()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 y Lcls;y()Lfbs;
    • 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 cO Lbvj;cO()Ljm;
    • 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 z Lcls;z()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:
      • invalid reference
        #dropItem(ItemConvertible)
      • invalid reference
        #dropItem(ItemConvertible, int)
      • invalid reference
        #dropStack(ItemStack)
      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 Lbvj;a(Lash;Lcxo;F)Lcma;
    • 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 Lbvj;a(Ldrb;)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 Lbvj;a(Ldpk;)F