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 static RaidManagerfromTag(ServerWorld serverWorld, CompoundTag compoundTag)private RaidgetOrCreateRaid(ServerWorld world, BlockPos pos)RaidgetRaid(int id)RaidgetRaidAt(BlockPos pos, int searchDistance)static booleanisValidRaiderFor(RaiderEntity raider, Raid raid)static StringnameFor(DimensionType dimensionType)private intnextId()RaidstartRaid(ServerPlayerEntity player)voidtick()CompoundTagtoTag(CompoundTag tag)Methods inherited from class net.minecraft.world.PersistentState
isDirty, markDirty, save, setDirty
-
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
-
toTag
- Specified by:
toTagin classPersistentState
-
nameFor
-
nextId
private int nextId() -
getRaidAt
-