Interface Spawner

All Known Implementing Classes:
MobSpawnerBlockEntity, TrialSpawnerBlockEntity

public interface Spawner
Mappings:
Namespace Name
named net/minecraft/block/entity/Spawner
intermediary net/minecraft/class_8959
official dle
  • Method Details Link icon

    • setEntityType Link icon

      void setEntityType(EntityType<?> type, Random random)
      Mappings:
      Namespace Name Mixin selector
      named setEntityType Lnet/minecraft/block/entity/Spawner;setEntityType(Lnet/minecraft/entity/EntityType;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_46408 Lnet/minecraft/class_8959;method_46408(Lnet/minecraft/class_1299;Lnet/minecraft/class_5819;)V
      official a Ldle;a(Lbxn;Lbai;)V
    • appendSpawnDataToTooltip Link icon

      static void appendSpawnDataToTooltip(NbtComponent nbtComponent, Consumer<Text> textConsumer, String spawnDataKey)
      Mappings:
      Namespace Name Mixin selector
      named appendSpawnDataToTooltip Lnet/minecraft/block/entity/Spawner;appendSpawnDataToTooltip(Lnet/minecraft/component/type/NbtComponent;Ljava/util/function/Consumer;Ljava/lang/String;)V
      intermediary method_55121 Lnet/minecraft/class_8959;method_55121(Lnet/minecraft/class_9279;Ljava/util/function/Consumer;Ljava/lang/String;)V
      official a Ldle;a(Ldcs;Ljava/util/function/Consumer;Ljava/lang/String;)V
    • getSpawnedEntityText Link icon

      @Nullable static @Nullable Text getSpawnedEntityText(NbtComponent nbtComponent, String spawnDataKey)
      Mappings:
      Namespace Name Mixin selector
      named getSpawnedEntityText Lnet/minecraft/block/entity/Spawner;getSpawnedEntityText(Lnet/minecraft/component/type/NbtComponent;Ljava/lang/String;)Lnet/minecraft/text/Text;
      intermediary method_55120 Lnet/minecraft/class_8959;method_55120(Lnet/minecraft/class_9279;Ljava/lang/String;)Lnet/minecraft/class_2561;
      official a Ldle;a(Ldcs;Ljava/lang/String;)Lxg;