Class VillageSiege
java.lang.Object
net.minecraft.world.entity.ai.village.VillageSiege
- All Implemented Interfaces:
CustomSpawner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final org.slf4j.Logger
private int
private VillageSiege.State
private int
private int
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3
findRandomSpawnPos
(ServerLevel p_27010_, BlockPos p_27011_) int
tick
(ServerLevel p_27013_, boolean p_27014_, boolean p_27015_) private void
trySpawn
(ServerLevel p_27017_) private boolean
tryToSetupSiege
(ServerLevel p_27008_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
hasSetupSiege
private boolean hasSetupSiege -
siegeState
-
zombiesToSpawn
private int zombiesToSpawn -
nextSpawnTime
private int nextSpawnTime -
spawnX
private int spawnX -
spawnY
private int spawnY -
spawnZ
private int spawnZ
-
-
Constructor Details
-
VillageSiege
public VillageSiege()
-
-
Method Details
-
tick
- Specified by:
tick
in interfaceCustomSpawner
-
tryToSetupSiege
-
trySpawn
-
findRandomSpawnPos
-