Package net.minecraft.block.entity
Interface Spawner
- All Known Implementing Classes:
MobSpawnerBlockEntity,TrialSpawnerBlockEntity
public interface Spawner
- Mappings:
Namespace Name official cuhintermediary net/minecraft/class_8959named net/minecraft/block/entity/Spawner
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendSpawnDataToTooltip(ItemStack stack, List<Text> tooltip, String spawnDataKey) private static @Nullable IdentifiergetSpawnedEntityId(NbtCompound nbt, String spawnDataKey) getSpawnedEntityText(ItemStack stack, String spawnDataKey) voidsetEntityType(EntityType<?> type, Random random)
-
Method Details
-
setEntityType
- Mappings:
Namespace Name Mixin selector official aLcuh;a(Lblz;Lauv;)Vintermediary method_46408Lnet/minecraft/class_8959;method_46408(Lnet/minecraft/class_1299;Lnet/minecraft/class_5819;)Vnamed setEntityTypeLnet/minecraft/block/entity/Spawner;setEntityType(Lnet/minecraft/entity/EntityType;Lnet/minecraft/util/math/random/Random;)V
-
appendSpawnDataToTooltip
- Mappings:
Namespace Name Mixin selector official aLcuh;a(Lcmy;Ljava/util/List;Ljava/lang/String;)Vintermediary method_55121Lnet/minecraft/class_8959;method_55121(Lnet/minecraft/class_1799;Ljava/util/List;Ljava/lang/String;)Vnamed appendSpawnDataToTooltipLnet/minecraft/block/entity/Spawner;appendSpawnDataToTooltip(Lnet/minecraft/item/ItemStack;Ljava/util/List;Ljava/lang/String;)V
-
getSpawnedEntityText
- Mappings:
Namespace Name Mixin selector official aLcuh;a(Lcmy;Ljava/lang/String;)Lvf;intermediary method_55120Lnet/minecraft/class_8959;method_55120(Lnet/minecraft/class_1799;Ljava/lang/String;)Lnet/minecraft/class_2561;named getSpawnedEntityTextLnet/minecraft/block/entity/Spawner;getSpawnedEntityText(Lnet/minecraft/item/ItemStack;Ljava/lang/String;)Lnet/minecraft/text/Text;
-
getSpawnedEntityId
@Nullable private static @Nullable Identifier getSpawnedEntityId(NbtCompound nbt, String spawnDataKey) - Mappings:
Namespace Name Mixin selector official aLcuh;a(Lsn;Ljava/lang/String;)Lahg;intermediary method_55122Lnet/minecraft/class_8959;method_55122(Lnet/minecraft/class_2487;Ljava/lang/String;)Lnet/minecraft/class_2960;named getSpawnedEntityIdLnet/minecraft/block/entity/Spawner;getSpawnedEntityId(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
-