public class RaidManager extends WorldSavedData
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,Raid> |
byId |
private int |
nextAvailableId |
private int |
tick |
private ServerWorld |
world |
Constructor and Description |
---|
RaidManager(ServerWorld p_i50142_1_) |
Modifier and Type | Method and Description |
---|---|
Raid |
badOmenTick(ServerPlayerEntity p_215170_1_) |
static boolean |
canJoinRaid(AbstractRaiderEntity p_215165_0_,
Raid p_215165_1_) |
private Raid |
findOrCreateRaid(ServerWorld p_215168_1_,
BlockPos p_215168_2_) |
Raid |
findRaid(BlockPos p_215174_1_,
int distance) |
Raid |
get(int id) |
static java.lang.String |
getFileId(Dimension p_215172_0_) |
private int |
incrementNextId() |
void |
read(CompoundNBT nbt) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
deserializeNBT, getName, isDirty, markDirty, save, serializeNBT, setDirty
private final java.util.Map<java.lang.Integer,Raid> byId
private final ServerWorld world
private int nextAvailableId
private int tick
public RaidManager(ServerWorld p_i50142_1_)
public Raid get(int id)
public void tick()
public static boolean canJoinRaid(AbstractRaiderEntity p_215165_0_, Raid p_215165_1_)
@Nullable public Raid badOmenTick(ServerPlayerEntity p_215170_1_)
private Raid findOrCreateRaid(ServerWorld p_215168_1_, BlockPos p_215168_2_)
public void read(CompoundNBT nbt)
read
in class WorldSavedData
public CompoundNBT write(CompoundNBT compound)
write
in class WorldSavedData
public static java.lang.String getFileId(Dimension p_215172_0_)
private int incrementNextId()