mirror of https://github.com/FabricMC/yarn.git
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
|
CLASS net/minecraft/class_4274 net/minecraft/world/spawner/CatSpawner
|
||
|
COMMENT A spawner for cats in villages and swamp huts.
|
||
|
COMMENT
|
||
|
COMMENT @implNote Cats in swamp huts are also spawned in
|
||
|
COMMENT {@link net.minecraft.world.gen.chunk.ChunkGeneratorSettings#getEntitySpawnList}.
|
||
|
FIELD field_19171 cooldown I
|
||
|
FIELD field_30601 SPAWN_INTERVAL I
|
||
|
METHOD method_20260 spawnInSwampHut (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)I
|
||
|
COMMENT Tries to spawn cats in swamp huts.
|
||
|
COMMENT
|
||
|
COMMENT @return the number of cats spawned
|
||
|
ARG 1 world
|
||
|
ARG 2 pos
|
||
|
METHOD method_20262 spawn (Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)I
|
||
|
COMMENT Spawns a cat.
|
||
|
COMMENT
|
||
|
COMMENT @return the number of cats spawned
|
||
|
ARG 1 pos
|
||
|
ARG 2 world
|
||
|
METHOD method_20263 spawnInHouse (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)I
|
||
|
COMMENT Tries to spawn cats in villages.
|
||
|
COMMENT
|
||
|
COMMENT @return the number of cats spawned
|
||
|
COMMENT
|
||
|
COMMENT @implNote Cats spawn when there are more than 5 occupied beds and less than 5 existing cats.
|
||
|
ARG 1 world
|
||
|
ARG 2 pos
|