Package net.minecraft.world.raid
Class Raid
java.lang.Object
net.minecraft.world.raid.Raid
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private int
private BlockPos
private static final ITextComponent
private final Map<Integer,
Set<AbstractRaiderEntity>> private int
private final Map<Integer,
AbstractRaiderEntity> private final int
private final ServerWorld
private final int
private int
private static final ITextComponent
private static final ITextComponent
private static final ITextComponent
private int
private final ServerBossInfo
private final Random
private boolean
private Raid.Status
private long
private float
private static final ITextComponent
-
Constructor Summary
ConstructorDescriptionRaid
(int p_i50144_1_, ServerWorld p_i50144_2_, BlockPos p_i50144_3_) Raid
(ServerWorld p_i50145_1_, CompoundNBT p_i50145_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
absorbBadOmen
(PlayerEntity p_221309_1_) void
addHeroOfTheVillage
(Entity p_221311_1_) private boolean
addWaveMob
(int p_221287_1_, AbstractRaiderEntity p_221287_2_) boolean
addWaveMob
(int p_221300_1_, AbstractRaiderEntity p_221300_2_, boolean p_221300_3_) private BlockPos
findRandomSpawnPos
(int p_221298_1_, int p_221298_2_) int
private int
getDefaultNumSpawns
(Raid.WaveMember p_221330_1_, int p_221330_2_, boolean p_221330_3_) float
int
float
int
getId()
getLeader
(int p_221332_1_) static ItemStack
getLevel()
int
int
getNumGroups
(Difficulty p_221306_1_) private int
getPotentialBonusSpawns
(Raid.WaveMember p_221335_1_, Random p_221335_2_, int p_221335_3_, DifficultyInstance p_221335_4_, boolean p_221335_5_) int
getValidSpawnPos
(int p_221313_1_) private boolean
boolean
private boolean
private boolean
boolean
isActive()
boolean
private boolean
boolean
isLoss()
boolean
isOver()
boolean
boolean
boolean
void
joinRaid
(int p_221317_1_, AbstractRaiderEntity p_221317_2_, BlockPos p_221317_3_, boolean p_221317_4_) private void
private void
void
removeFromRaid
(AbstractRaiderEntity p_221322_1_, boolean p_221322_2_) void
removeLeader
(int p_221296_1_) save
(CompoundNBT p_221326_1_) private void
private void
setDirty()
void
setLeader
(int p_221324_1_, AbstractRaiderEntity p_221324_2_) private boolean
private boolean
private void
spawnGroup
(BlockPos p_221294_1_) void
stop()
void
tick()
void
private void
private void
private Predicate<ServerPlayerEntity>
-
Field Details
-
RAID_NAME_COMPONENT
-
VICTORY
-
DEFEAT
-
RAID_BAR_VICTORY_COMPONENT
-
RAID_BAR_DEFEAT_COMPONENT
-
groupToLeaderMap
-
groupRaiderMap
-
heroesOfTheVillage
-
ticksActive
private long ticksActive -
center
-
level
-
started
private boolean started -
id
private final int id -
totalHealth
private float totalHealth -
badOmenLevel
private int badOmenLevel -
active
private boolean active -
groupsSpawned
private int groupsSpawned -
raidEvent
-
postRaidTicks
private int postRaidTicks -
raidCooldownTicks
private int raidCooldownTicks -
random
-
numGroups
private final int numGroups -
status
-
celebrationTicks
private int celebrationTicks -
waveSpawnPos
-
-
Constructor Details
-
Raid
-
Raid
-
-
Method Details
-
isOver
public boolean isOver() -
isBetweenWaves
public boolean isBetweenWaves() -
hasFirstWaveSpawned
public boolean hasFirstWaveSpawned() -
isStopped
public boolean isStopped() -
isVictory
public boolean isVictory() -
isLoss
public boolean isLoss() -
getLevel
-
isStarted
public boolean isStarted() -
getGroupsSpawned
public int getGroupsSpawned() -
validPlayer
-
updatePlayers
private void updatePlayers() -
getMaxBadOmenLevel
public int getMaxBadOmenLevel() -
getBadOmenLevel
public int getBadOmenLevel() -
absorbBadOmen
-
stop
public void stop() -
tick
public void tick() -
moveRaidCenterToNearbyVillageSection
private void moveRaidCenterToNearbyVillageSection() -
getValidSpawnPos
-
hasMoreWaves
private boolean hasMoreWaves() -
isFinalWave
private boolean isFinalWave() -
hasBonusWave
private boolean hasBonusWave() -
hasSpawnedBonusWave
private boolean hasSpawnedBonusWave() -
shouldSpawnBonusGroup
private boolean shouldSpawnBonusGroup() -
updateRaiders
private void updateRaiders() -
playSound
-
spawnGroup
-
joinRaid
public void joinRaid(int p_221317_1_, AbstractRaiderEntity p_221317_2_, @Nullable BlockPos p_221317_3_, boolean p_221317_4_) -
updateBossbar
public void updateBossbar() -
getHealthOfLivingRaiders
public float getHealthOfLivingRaiders() -
shouldSpawnGroup
private boolean shouldSpawnGroup() -
getTotalRaidersAlive
public int getTotalRaidersAlive() -
removeFromRaid
-
setDirty
private void setDirty() -
getLeaderBannerInstance
-
getLeader
-
findRandomSpawnPos
-
addWaveMob
-
addWaveMob
-
setLeader
-
removeLeader
public void removeLeader(int p_221296_1_) -
getCenter
-
setCenter
-
getId
public int getId() -
getDefaultNumSpawns
-
getPotentialBonusSpawns
private int getPotentialBonusSpawns(Raid.WaveMember p_221335_1_, Random p_221335_2_, int p_221335_3_, DifficultyInstance p_221335_4_, boolean p_221335_5_) -
isActive
public boolean isActive() -
save
-
getNumGroups
-
getEnchantOdds
public float getEnchantOdds() -
addHeroOfTheVillage
-