Class SculkCatalystBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkCatalystBlockEntity
All Implemented Interfaces:
GameEventListener

public class SculkCatalystBlockEntity extends BlockEntity implements GameEventListener
Mappings:
Namespace Name
official cxl
intermediary net/minecraft/class_7132
named net/minecraft/block/entity/SculkCatalystBlockEntity
  • Field Details

    • positionSource

      private final BlockPositionSource positionSource
      Mappings:
      Namespace Name Mixin selector
      official a Lcxl;a:Ldcy;
      intermediary field_37649 Lnet/minecraft/class_7132;field_37649:Lnet/minecraft/class_5707;
      named positionSource Lnet/minecraft/block/entity/SculkCatalystBlockEntity;positionSource:Lnet/minecraft/world/event/BlockPositionSource;
    • spreadManager

      private final SculkSpreadManager spreadManager
      Mappings:
      Namespace Name Mixin selector
      official b Lcxl;b:Lcti;
      intermediary field_37650 Lnet/minecraft/class_7132;field_37650:Lnet/minecraft/class_7128;
      named spreadManager Lnet/minecraft/block/entity/SculkCatalystBlockEntity;spreadManager:Lnet/minecraft/block/entity/SculkSpreadManager;
  • Constructor Details

    • SculkCatalystBlockEntity

      public SculkCatalystBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxl;<init>(Lgp;Lcyt;)V
      intermediary <init> Lnet/minecraft/class_7132;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/SculkCatalystBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
  • Method Details

    • getPositionSource

      public PositionSource getPositionSource()
      Returns the position source of this listener.
      Specified by:
      getPositionSource in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      official a Ldde;a()Lddg;
      intermediary method_32946 Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
      named getPositionSource Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
    • getRange

      public int getRange()
      Returns the range, in blocks, of the listener.
      Specified by:
      getRange in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      official b Ldde;b()I
      intermediary method_32948 Lnet/minecraft/class_5714;method_32948()I
      named getRange Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
    • getTriggerOrder

      public GameEventListener.TriggerOrder getTriggerOrder()
      Specified by:
      getTriggerOrder in interface GameEventListener
      Mappings:
      Namespace Name Mixin selector
      official c Ldde;c()Ldde$a;
      intermediary method_45472 Lnet/minecraft/class_5714;method_45472()Lnet/minecraft/class_5714$class_7720;
      named getTriggerOrder Lnet/minecraft/world/event/listener/GameEventListener;getTriggerOrder()Lnet/minecraft/world/event/listener/GameEventListener$TriggerOrder;
    • listen

      public boolean listen(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos)
      Listens to an incoming game event.
      Specified by:
      listen in interface GameEventListener
      Returns:
      true if the game event has been accepted by this listener
      Mappings:
      Namespace Name Mixin selector
      official a Ldde;a(Lahm;Lddc;Lddc$a;Leae;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_3218;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;Lnet/minecraft/class_243;)Z
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;Lnet/minecraft/util/math/Vec3d;)Z
    • triggerCriteria

      private void triggerCriteria(LivingEntity deadEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxl;a(Lbeg;)V
      intermediary method_45471 Lnet/minecraft/class_7132;method_45471(Lnet/minecraft/class_1309;)V
      named triggerCriteria Lnet/minecraft/block/entity/SculkCatalystBlockEntity;triggerCriteria(Lnet/minecraft/entity/LivingEntity;)V
    • tick

      public static void tick(World world, BlockPos pos, BlockState state, SculkCatalystBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxl;a(Lcjw;Lgp;Lcyt;Lcxl;)V
      intermediary method_41517 Lnet/minecraft/class_7132;method_41517(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_7132;)V
      named tick Lnet/minecraft/block/entity/SculkCatalystBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/SculkCatalystBlockEntity;)V
    • readNbt

      public void readNbt(NbtCompound nbt)
      Reads data from nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcwl;a(Lqp;)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)
      Writes data to nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      Overrides:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcwl;b(Lqp;)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
    • getSpreadManager

      public SculkSpreadManager getSpreadManager()
      Mappings:
      Namespace Name Mixin selector
      official d Lcxl;d()Lcti;
      intermediary method_41519 Lnet/minecraft/class_7132;method_41519()Lnet/minecraft/class_7128;
      named getSpreadManager Lnet/minecraft/block/entity/SculkCatalystBlockEntity;getSpreadManager()Lnet/minecraft/block/entity/SculkSpreadManager;