Class BeaconBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BeaconBlockEntity
All Implemented Interfaces:
NamedScreenHandlerFactory, ScreenHandlerFactory

public class BeaconBlockEntity extends BlockEntity implements NamedScreenHandlerFactory
Mappings:
Namespace Name
official clu
intermediary net/minecraft/class_2580
named net/minecraft/block/entity/BeaconBlockEntity
  • Field Details

    • field_31304

      private static final int field_31304
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lclu;f:I
      intermediary field_31304 Lnet/minecraft/class_2580;field_31304:I
      named field_31304 Lnet/minecraft/block/entity/BeaconBlockEntity;field_31304:I
    • EFFECTS_BY_LEVEL

      public static final StatusEffect[][] EFFECTS_BY_LEVEL
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a:[[Lawl;
      intermediary field_11801 Lnet/minecraft/class_2580;field_11801:[[Lnet/minecraft/class_1291;
      named EFFECTS_BY_LEVEL Lnet/minecraft/block/entity/BeaconBlockEntity;EFFECTS_BY_LEVEL:[[Lnet/minecraft/entity/effect/StatusEffect;
    • EFFECTS

      private static final Set<StatusEffect> EFFECTS
      Mappings:
      Namespace Name Mixin selector
      official g Lclu;g:Ljava/util/Set;
      intermediary field_11798 Lnet/minecraft/class_2580;field_11798:Ljava/util/Set;
      named EFFECTS Lnet/minecraft/block/entity/BeaconBlockEntity;EFFECTS:Ljava/util/Set;
    • field_31300

      public static final int field_31300
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lclu;b:I
      intermediary field_31300 Lnet/minecraft/class_2580;field_31300:I
      named field_31300 Lnet/minecraft/block/entity/BeaconBlockEntity;field_31300:I
    • field_31301

      public static final int field_31301
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lclu;c:I
      intermediary field_31301 Lnet/minecraft/class_2580;field_31301:I
      named field_31301 Lnet/minecraft/block/entity/BeaconBlockEntity;field_31301:I
    • field_31302

      public static final int field_31302
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lclu;d:I
      intermediary field_31302 Lnet/minecraft/class_2580;field_31302:I
      named field_31302 Lnet/minecraft/block/entity/BeaconBlockEntity;field_31302:I
    • field_31303

      public static final int field_31303
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lclu;e:I
      intermediary field_31303 Lnet/minecraft/class_2580;field_31303:I
      named field_31303 Lnet/minecraft/block/entity/BeaconBlockEntity;field_31303:I
    • field_31305

      private static final int field_31305
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lclu;h:I
      intermediary field_31305 Lnet/minecraft/class_2580;field_31305:I
      named field_31305 Lnet/minecraft/block/entity/BeaconBlockEntity;field_31305:I
    • beamSegments

      Mappings:
      Namespace Name Mixin selector
      official i Lclu;i:Ljava/util/List;
      intermediary field_19177 Lnet/minecraft/class_2580;field_19177:Ljava/util/List;
      named beamSegments Lnet/minecraft/block/entity/BeaconBlockEntity;beamSegments:Ljava/util/List;
    • field_19178

      private List<BeaconBlockEntity.BeamSegment> field_19178
      Mappings:
      Namespace Name Mixin selector
      official j Lclu;j:Ljava/util/List;
      intermediary field_19178 Lnet/minecraft/class_2580;field_19178:Ljava/util/List;
      named field_19178 Lnet/minecraft/block/entity/BeaconBlockEntity;field_19178:Ljava/util/List;
    • level

      int level
      Mappings:
      Namespace Name Mixin selector
      official k Lclu;k:I
      intermediary field_11803 Lnet/minecraft/class_2580;field_11803:I
      named level Lnet/minecraft/block/entity/BeaconBlockEntity;level:I
    • minY

      private int minY
      Mappings:
      Namespace Name Mixin selector
      official l Lclu;l:I
      intermediary field_19179 Lnet/minecraft/class_2580;field_19179:I
      named minY Lnet/minecraft/block/entity/BeaconBlockEntity;minY:I
    • primary

      Mappings:
      Namespace Name Mixin selector
      official m Lclu;m:Lawl;
      intermediary field_11795 Lnet/minecraft/class_2580;field_11795:Lnet/minecraft/class_1291;
      named primary Lnet/minecraft/block/entity/BeaconBlockEntity;primary:Lnet/minecraft/entity/effect/StatusEffect;
    • secondary

      Mappings:
      Namespace Name Mixin selector
      official q Lclu;q:Lawl;
      intermediary field_11799 Lnet/minecraft/class_2580;field_11799:Lnet/minecraft/class_1291;
      named secondary Lnet/minecraft/block/entity/BeaconBlockEntity;secondary:Lnet/minecraft/entity/effect/StatusEffect;
    • customName

      @Nullable private @Nullable Text customName
      Mappings:
      Namespace Name Mixin selector
      official r Lclu;r:Lpz;
      intermediary field_11793 Lnet/minecraft/class_2580;field_11793:Lnet/minecraft/class_2561;
      named customName Lnet/minecraft/block/entity/BeaconBlockEntity;customName:Lnet/minecraft/text/Text;
    • lock

      private ContainerLock lock
      Mappings:
      Namespace Name Mixin selector
      official s Lclu;s:Lavs;
      intermediary field_17377 Lnet/minecraft/class_2580;field_17377:Lnet/minecraft/class_1273;
      named lock Lnet/minecraft/block/entity/BeaconBlockEntity;lock:Lnet/minecraft/inventory/ContainerLock;
    • propertyDelegate

      private final PropertyDelegate propertyDelegate
      Mappings:
      Namespace Name Mixin selector
      official t Lclu;t:Lbqh;
      intermediary field_17378 Lnet/minecraft/class_2580;field_17378:Lnet/minecraft/class_3913;
      named propertyDelegate Lnet/minecraft/block/entity/BeaconBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
  • Constructor Details

    • BeaconBlockEntity

      public BeaconBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lclu;<init>(Lgh;Lcoc;)V
      intermediary <init> Lnet/minecraft/class_2580;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/BeaconBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
  • Method Details

    • tick

      public static void tick(World world, BlockPos pos, BlockState state, BeaconBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a(Lcad;Lgh;Lcoc;Lclu;)V
      intermediary method_16896 Lnet/minecraft/class_2580;method_16896(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2580;)V
      named tick Lnet/minecraft/block/entity/BeaconBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeaconBlockEntity;)V
    • updateLevel

      private static int updateLevel(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a(Lcad;III)I
      intermediary method_20293 Lnet/minecraft/class_2580;method_20293(Lnet/minecraft/class_1937;III)I
      named updateLevel Lnet/minecraft/block/entity/BeaconBlockEntity;updateLevel(Lnet/minecraft/world/World;III)I
    • markRemoved

      public void markRemoved()
      Overrides:
      markRemoved in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official aa_ Lclz;aa_()V
      intermediary method_11012 Lnet/minecraft/class_2586;method_11012()V
      named markRemoved Lnet/minecraft/block/entity/BlockEntity;markRemoved()V
    • applyPlayerEffects

      private static void applyPlayerEffects(World world, BlockPos pos, int beaconLevel, @Nullable @Nullable StatusEffect primaryEffect, @Nullable @Nullable StatusEffect secondaryEffect)
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a(Lcad;Lgh;ILawl;Lawl;)V
      intermediary method_10940 Lnet/minecraft/class_2580;method_10940(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ILnet/minecraft/class_1291;Lnet/minecraft/class_1291;)V
      named applyPlayerEffects Lnet/minecraft/block/entity/BeaconBlockEntity;applyPlayerEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/entity/effect/StatusEffect;Lnet/minecraft/entity/effect/StatusEffect;)V
    • playSound

      public static void playSound(World world, BlockPos pos, SoundEvent sound)
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a(Lcad;Lgh;Lagu;)V
      intermediary method_10938 Lnet/minecraft/class_2580;method_10938(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;)V
      named playSound Lnet/minecraft/block/entity/BeaconBlockEntity;playSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;)V
    • getBeamSegments

      public List<BeaconBlockEntity.BeamSegment> getBeamSegments()
      Mappings:
      Namespace Name Mixin selector
      official c Lclu;c()Ljava/util/List;
      intermediary method_10937 Lnet/minecraft/class_2580;method_10937()Ljava/util/List;
      named getBeamSegments Lnet/minecraft/block/entity/BeaconBlockEntity;getBeamSegments()Ljava/util/List;
    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update packet.

      If the data returned by initial chunk data is suitable for updates, the following shortcut can be used to create an update packet: BlockEntityUpdateS2CPacket.create(this).

      The NBT will be passed to BlockEntity.readNbt(net.minecraft.nbt.NbtCompound) on the client.

      Overrides:
      toUpdatePacket in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official f Lclu;f()Lrf;
      intermediary method_38236 Lnet/minecraft/class_2580;method_38236()Lnet/minecraft/class_2622;
      named toUpdatePacket Lnet/minecraft/block/entity/BeaconBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
    • toInitialChunkDataNbt

      public NbtCompound toInitialChunkDataNbt()
      Serializes the state of this block entity that is observable by clients. It is sent alongside the initial chunk data, as well as when the block entity implements BlockEntity.toUpdatePacket() and decides to use the default BlockEntityUpdateS2CPacket.
      Overrides:
      toInitialChunkDataNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official Z_ Lclz;Z_()Loc;
      intermediary method_16887 Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
      named toInitialChunkDataNbt Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
    • getPotionEffectById

      @Nullable static @Nullable StatusEffect getPotionEffectById(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a(I)Lawl;
      intermediary method_10934 Lnet/minecraft/class_2580;method_10934(I)Lnet/minecraft/class_1291;
      named getPotionEffectById Lnet/minecraft/block/entity/BeaconBlockEntity;getPotionEffectById(I)Lnet/minecraft/entity/effect/StatusEffect;
    • readNbt

      public void readNbt(NbtCompound nbt)
      Overrides:
      readNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lclz;a(Loc;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt)
      Overrides:
      writeNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lclz;b(Loc;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • setCustomName

      public void setCustomName(@Nullable @Nullable Text customName)
      Mappings:
      Namespace Name Mixin selector
      official a Lclu;a(Lpz;)V
      intermediary method_10936 Lnet/minecraft/class_2580;method_10936(Lnet/minecraft/class_2561;)V
      named setCustomName Lnet/minecraft/block/entity/BeaconBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
    • createMenu

      @Nullable public @Nullable ScreenHandler createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
      Specified by:
      createMenu in interface ScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official createMenu Lbra;createMenu(ILbnq;Lbnr;)Lbpx;
      intermediary createMenu Lnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;
      named createMenu Lnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
    • getDisplayName

      public Text getDisplayName()
      Returns the title of this screen handler; will be a part of the open screen packet sent to the client.
      Specified by:
      getDisplayName in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official C_ Lavt;C_()Lpz;
      intermediary method_5476 Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
      named getDisplayName Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
    • setWorld

      public void setWorld(World world)
      Overrides:
      setWorld in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lclz;a(Lcad;)V
      intermediary method_31662 Lnet/minecraft/class_2586;method_31662(Lnet/minecraft/class_1937;)V
      named setWorld Lnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V