Package net.minecraft.village.raid
Class RaidManager
java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.village.raid.RaidManager
public class RaidManager extends PersistentState
-
Field Summary
Fields Modifier and Type Field Description private intcurrentTimeprivate intnextAvailableIdprivate Map<Integer,Raid>raidsprivate ServerWorldworld -
Constructor Summary
Constructors Constructor Description RaidManager(ServerWorld world) -
Method Summary
Modifier and Type Method Description voidfromTag(CompoundTag tag)private RaidgetOrCreateRaid(ServerWorld world, BlockPos pos)RaidgetRaid(int id)RaidgetRaidAt(BlockPos pos, int int2)static booleanisValidRaiderFor(RaiderEntity raider, Raid raid)static StringnameFor(DimensionType dimensionType)private intnextId()RaidstartRaid(ServerPlayerEntity player)voidtick()CompoundTagtoTag(CompoundTag tag)
-
Field Details
-
raids
-
world
-
nextAvailableId
private int nextAvailableId -
currentTime
private int currentTime
-
-
Constructor Details
-
RaidManager
-
-
Method Details
-
getRaid
-
tick
public void tick() -
isValidRaiderFor
-
startRaid
-
getOrCreateRaid
-
fromTag
- Specified by:
fromTagin classPersistentState
-
toTag
- Specified by:
toTagin classPersistentState
-
nameFor
-
nextId
private int nextId() -
getRaidAt
-