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>
public class RaidManager extends WorldSavedData
-
-
Field Summary
Fields Modifier and Type Field Description private ServerWorld
level
private int
nextAvailableID
private java.util.Map<java.lang.Integer,Raid>
raidMap
private int
tick
-
Constructor Summary
Constructors Constructor Description RaidManager(ServerWorld p_i50142_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
canJoinRaid(AbstractRaiderEntity p_215165_0_, Raid p_215165_1_)
Raid
createOrExtendRaid(ServerPlayerEntity p_215170_1_)
Raid
get(int p_215167_1_)
static java.lang.String
getFileId(DimensionType p_234620_0_)
Raid
getNearbyRaid(BlockPos p_215174_1_, int p_215174_2_)
private Raid
getOrCreateRaid(ServerWorld p_215168_1_, BlockPos p_215168_2_)
private int
getUniqueId()
void
load(CompoundNBT p_76184_1_)
CompoundNBT
save(CompoundNBT p_189551_1_)
void
tick()
-
Methods inherited from class net.minecraft.world.storage.WorldSavedData
deserializeNBT, getId, isDirty, save, serializeNBT, setDirty, setDirty
-
-
-
-
Field Detail
-
raidMap
private final java.util.Map<java.lang.Integer,Raid> raidMap
-
level
private final ServerWorld level
-
nextAvailableID
private int nextAvailableID
-
tick
private int tick
-
-
Constructor Detail
-
RaidManager
public RaidManager(ServerWorld p_i50142_1_)
-
-
Method Detail
-
get
public Raid get(int p_215167_1_)
-
tick
public void tick()
-
canJoinRaid
public static boolean canJoinRaid(AbstractRaiderEntity p_215165_0_, Raid p_215165_1_)
-
createOrExtendRaid
@Nullable public Raid createOrExtendRaid(ServerPlayerEntity p_215170_1_)
-
getOrCreateRaid
private Raid getOrCreateRaid(ServerWorld p_215168_1_, BlockPos p_215168_2_)
-
load
public void load(CompoundNBT p_76184_1_)
- Specified by:
load
in classWorldSavedData
-
save
public CompoundNBT save(CompoundNBT p_189551_1_)
- Specified by:
save
in classWorldSavedData
-
getFileId
public static java.lang.String getFileId(DimensionType p_234620_0_)
-
getUniqueId
private int getUniqueId()
-
-