Package net.minecraft.village
Class VillageSiege
- java.lang.Object
-
- net.minecraft.village.VillageSiege
-
- All Implemented Interfaces:
ISpecialSpawner
public class VillageSiege extends java.lang.Object implements ISpecialSpawner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
VillageSiege.State
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasSetupSiege
private static org.apache.logging.log4j.Logger
LOGGER
private int
nextSpawnTime
private VillageSiege.State
siegeState
private int
spawnX
private int
spawnY
private int
spawnZ
private int
zombiesToSpawn
-
Constructor Summary
Constructors Constructor Description VillageSiege()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Vector3d
findRandomSpawnPos(ServerWorld p_225476_1_, BlockPos p_225476_2_)
int
tick(ServerWorld p_230253_1_, boolean p_230253_2_, boolean p_230253_3_)
private void
trySpawn(ServerWorld p_75530_1_)
private boolean
tryToSetupSiege(ServerWorld p_75529_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
hasSetupSiege
private boolean hasSetupSiege
-
siegeState
private VillageSiege.State siegeState
-
zombiesToSpawn
private int zombiesToSpawn
-
nextSpawnTime
private int nextSpawnTime
-
spawnX
private int spawnX
-
spawnY
private int spawnY
-
spawnZ
private int spawnZ
-
-
Method Detail
-
tick
public int tick(ServerWorld p_230253_1_, boolean p_230253_2_, boolean p_230253_3_)
- Specified by:
tick
in interfaceISpecialSpawner
-
tryToSetupSiege
private boolean tryToSetupSiege(ServerWorld p_75529_1_)
-
trySpawn
private void trySpawn(ServerWorld p_75530_1_)
-
findRandomSpawnPos
@Nullable private Vector3d findRandomSpawnPos(ServerWorld p_225476_1_, BlockPos p_225476_2_)
-
-