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 classVillageSiege.State
-
Field Summary
Fields Modifier and Type Field Description private booleanhasSetupSiegeprivate static org.apache.logging.log4j.LoggerLOGGERprivate intnextSpawnTimeprivate VillageSiege.StatesiegeStateprivate intspawnXprivate intspawnYprivate intspawnZprivate intzombiesToSpawn
-
Constructor Summary
Constructors Constructor Description VillageSiege()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Vector3dfindRandomSpawnPos(ServerWorld p_225476_1_, BlockPos p_225476_2_)inttick(ServerWorld p_230253_1_, boolean p_230253_2_, boolean p_230253_3_)private voidtrySpawn(ServerWorld p_75530_1_)private booleantryToSetupSiege(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:
tickin 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_)
-
-