Package net.minecraft.world.raid
Class RaidManager
java.lang.Object
net.minecraft.world.storage.WorldSavedData
net.minecraft.world.raid.RaidManager
- All Implemented Interfaces:
INBTSerializable<CompoundNBT>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canJoinRaid
(AbstractRaiderEntity p_215165_0_, Raid p_215165_1_) createOrExtendRaid
(ServerPlayerEntity p_215170_1_) get
(int p_215167_1_) static String
getFileId
(DimensionType p_234620_0_) getNearbyRaid
(BlockPos p_215174_1_, int p_215174_2_) private Raid
getOrCreateRaid
(ServerWorld p_215168_1_, BlockPos p_215168_2_) private int
void
load
(CompoundNBT p_76184_1_) save
(CompoundNBT p_189551_1_) void
tick()
Methods inherited from class net.minecraft.world.storage.WorldSavedData
deserializeNBT, getId, isDirty, save, serializeNBT, setDirty, setDirty
-
Field Details
-
raidMap
-
level
-
nextAvailableID
private int nextAvailableID -
tick
private int tick
-
-
Constructor Details
-
RaidManager
-
-
Method Details
-
get
-
tick
public void tick() -
canJoinRaid
-
createOrExtendRaid
-
getOrCreateRaid
-
load
- Specified by:
load
in classWorldSavedData
-
save
- Specified by:
save
in classWorldSavedData
-
getFileId
-
getUniqueId
private int getUniqueId() -
getNearbyRaid
-