Class PaintingEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

public class PaintingEntity extends AbstractDecorationEntity
Mappings:
Namespace Name
official bpt
intermediary net/minecraft/class_1534
named net/minecraft/entity/decoration/painting/PaintingEntity
  • Field Details

    • VARIANT

      private static final TrackedData<RegistryEntry<PaintingVariant>> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official e Lbpt;e:Lzr;
      intermediary field_38941 Lnet/minecraft/class_1534;field_38941:Lnet/minecraft/class_2940;
      named VARIANT Lnet/minecraft/entity/decoration/painting/PaintingEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
    • DEFAULT_VARIANT

      private static final RegistryKey<PaintingVariant> DEFAULT_VARIANT
      Mappings:
      Namespace Name Mixin selector
      official f Lbpt;f:Laai;
      intermediary field_38942 Lnet/minecraft/class_1534;field_38942:Lnet/minecraft/class_5321;
      named DEFAULT_VARIANT Lnet/minecraft/entity/decoration/painting/PaintingEntity;DEFAULT_VARIANT:Lnet/minecraft/util/registry/RegistryKey;
  • Constructor Details

    • PaintingEntity

      public PaintingEntity(EntityType<? extends PaintingEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaq;<init>(Lbau;Lcga;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
    • PaintingEntity

      private PaintingEntity(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpt;<init>(Lcga;Lgt;)V
      intermediary <init> Lnet/minecraft/class_1534;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/entity/decoration/painting/PaintingEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • PaintingEntity

      public PaintingEntity(World world, BlockPos pos, Direction direction, RegistryEntry<PaintingVariant> variant)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbpt;<init>(Lcga;Lgt;Lgy;Lhc;)V
      intermediary <init> Lnet/minecraft/class_1534;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_6880;)V
      named <init> Lnet/minecraft/entity/decoration/painting/PaintingEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/registry/RegistryEntry;)V
  • Method Details

    • getDefaultVariant

      private static RegistryEntry<PaintingVariant> getDefaultVariant()
      Mappings:
      Namespace Name Mixin selector
      official i Lbpt;i()Lhc;
      intermediary method_43405 Lnet/minecraft/class_1534;method_43405()Lnet/minecraft/class_6880;
      named getDefaultVariant Lnet/minecraft/entity/decoration/painting/PaintingEntity;getDefaultVariant()Lnet/minecraft/util/registry/RegistryEntry;
    • initDataTracker

      protected void initDataTracker()
      Overrides:
      initDataTracker in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbaq;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Overrides:
      onTrackedDataSet in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lzr;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • setVariant

      private void setVariant(RegistryEntry<PaintingVariant> variant)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpt;a(Lhc;)V
      intermediary method_43402 Lnet/minecraft/class_1534;method_43402(Lnet/minecraft/class_6880;)V
      named setVariant Lnet/minecraft/entity/decoration/painting/PaintingEntity;setVariant(Lnet/minecraft/util/registry/RegistryEntry;)V
    • getVariant

      public RegistryEntry<PaintingVariant> getVariant()
      Mappings:
      Namespace Name Mixin selector
      official h Lbpt;h()Lhc;
      intermediary method_43404 Lnet/minecraft/class_1534;method_43404()Lnet/minecraft/class_6880;
      named getVariant Lnet/minecraft/entity/decoration/painting/PaintingEntity;getVariant()Lnet/minecraft/util/registry/RegistryEntry;
    • placePainting

      public static Optional<PaintingEntity> placePainting(World world, BlockPos pos, Direction facing)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpt;a(Lcga;Lgt;Lgy;)Ljava/util/Optional;
      intermediary method_43401 Lnet/minecraft/class_1534;method_43401(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Ljava/util/Optional;
      named placePainting Lnet/minecraft/entity/decoration/painting/PaintingEntity;placePainting(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Ljava/util/Optional;
    • getSize

      private static int getSize(RegistryEntry<PaintingVariant> variant)
      Mappings:
      Namespace Name Mixin selector
      official b Lbpt;b(Lhc;)I
      intermediary method_43403 Lnet/minecraft/class_1534;method_43403(Lnet/minecraft/class_6880;)I
      named getSize Lnet/minecraft/entity/decoration/painting/PaintingEntity;getSize(Lnet/minecraft/util/registry/RegistryEntry;)I
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(Lpj;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Overrides:
      readCustomDataFromNbt in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lpj;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getWidthPixels

      public int getWidthPixels()
      Specified by:
      getWidthPixels in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official s Lbpq;s()I
      intermediary method_6897 Lnet/minecraft/class_1530;method_6897()I
      named getWidthPixels Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getWidthPixels()I
    • getHeightPixels

      public int getHeightPixels()
      Specified by:
      getHeightPixels in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official t Lbpq;t()I
      intermediary method_6891 Lnet/minecraft/class_1530;method_6891()I
      named getHeightPixels Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getHeightPixels()I
    • onBreak

      public void onBreak(@Nullable @Nullable Entity entity)
      Specified by:
      onBreak in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbpq;a(Lbaq;)V
      intermediary method_6889 Lnet/minecraft/class_1530;method_6889(Lnet/minecraft/class_1297;)V
      named onBreak Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onBreak(Lnet/minecraft/entity/Entity;)V
    • onPlace

      public void onPlace()
      Specified by:
      onPlace in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official u Lbpq;u()V
      intermediary method_6894 Lnet/minecraft/class_1530;method_6894()V
      named onPlace Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onPlace()V
    • refreshPositionAndAngles

      public void refreshPositionAndAngles(double x, double y, double z, float yaw, float pitch)
      Overrides:
      refreshPositionAndAngles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(DDDFF)V
      intermediary method_5808 Lnet/minecraft/class_1297;method_5808(DDDFF)V
      named refreshPositionAndAngles Lnet/minecraft/entity/Entity;refreshPositionAndAngles(DDDFF)V
    • updateTrackedPositionAndAngles

      public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate)
      Overrides:
      updateTrackedPositionAndAngles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(DDDFFIZ)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFIZ)V
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
    • getSyncedPos

      public Vec3d getSyncedPos()
      Overrides:
      getSyncedPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      official da Lbaq;da()Ldvt;
      intermediary method_43390 Lnet/minecraft/class_1297;method_43390()Lnet/minecraft/class_243;
      named getSyncedPos Lnet/minecraft/entity/Entity;getSyncedPos()Lnet/minecraft/util/math/Vec3d;
    • createSpawnPacket

      public Packet<?> createSpawnPacket()
      Specified by:
      createSpawnPacket in class Entity
      Mappings:
      Namespace Name Mixin selector
      official S Lbaq;S()Lso;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
    • onSpawnPacket

      public void onSpawnPacket(EntitySpawnS2CPacket packet)
      Overrides:
      onSpawnPacket in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lss;)V
      intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
      named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
    • getPickBlockStack

      public ItemStack getPickBlockStack()
      Overrides:
      getPickBlockStack in class Entity
      Mappings:
      Namespace Name Mixin selector
      official do Lbaq;do()Lcaa;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;