Package net.minecraft

Class class_7338

All Implemented Interfaces:
GameEventListener

public class class_7338 extends BlockEntity implements GameEventListener
Mappings:
Namespace Name
official cnz
intermediary net/minecraft/class_7338
named net/minecraft/class_7338
  • Field Details

    • field_38607

      private final BlockPositionSource field_38607
      Mappings:
      Namespace Name Mixin selector
      official a Lcnz;a:Lctg;
      intermediary field_38607 Lnet/minecraft/class_7338;field_38607:Lnet/minecraft/class_5707;
      named field_38607 Lnet/minecraft/class_7338;field_38607:Lnet/minecraft/world/event/BlockPositionSource;
    • field_38608

      private final class_7334 field_38608
      Mappings:
      Namespace Name Mixin selector
      official b Lcnz;b:Lcjz;
      intermediary field_38608 Lnet/minecraft/class_7338;field_38608:Lnet/minecraft/class_7334;
      named field_38608 Lnet/minecraft/class_7338;field_38608:Lnet/minecraft/class_7334;
  • Constructor Details

  • 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 c Lctl;c()Lctn;
      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 d Lctl;d()I
      intermediary method_32948 Lnet/minecraft/class_5714;method_32948()I
      named getRange Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
    • listen

      public boolean listen(World world, GameEvent event, @Nullable @Nullable Entity entity, BlockPos pos)
      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 Lctl;a(Lcay;Lctj;Laxp;Lgk;)Z
      intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_1937;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Z
      named listen Lnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Z
    • method_42957

      public static void method_42957(World world, BlockPos blockPos, BlockState blockState, class_7338 class_7338)
      Mappings:
      Namespace Name Mixin selector
      official a Lcnz;a(Lcay;Lgk;Lcpg;Lcnz;)V
      intermediary method_42957 Lnet/minecraft/class_7338;method_42957(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_7338;)V
      named method_42957 Lnet/minecraft/class_7338;method_42957(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_7338;)V
    • readNbt

      public void readNbt(NbtCompound nbt)
      Overrides:
      readNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcnb;a(Lom;)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 Lcnb;b(Lom;)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
    • method_42959

      public class_7334 method_42959()
      Mappings:
      Namespace Name Mixin selector
      official f Lcnz;f()Lcjz;
      intermediary method_42959 Lnet/minecraft/class_7338;method_42959()Lnet/minecraft/class_7334;
      named method_42959 Lnet/minecraft/class_7338;method_42959()Lnet/minecraft/class_7334;