Package net.minecraft.world.raid
Class Raid
java.lang.Object
net.minecraft.world.raid.Raid
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate intprivate BlockPosprivate static final ITextComponentprivate final Map<Integer,Set<AbstractRaiderEntity>> private intprivate final Map<Integer,AbstractRaiderEntity> private final intprivate final ServerWorldprivate final intprivate intprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate intprivate final ServerBossInfoprivate final Randomprivate booleanprivate Raid.Statusprivate longprivate floatprivate static final ITextComponent -
Constructor Summary
ConstructorsConstructorDescriptionRaid(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 TypeMethodDescriptionvoidabsorbBadOmen(PlayerEntity p_221309_1_) voidaddHeroOfTheVillage(Entity p_221311_1_) private booleanaddWaveMob(int p_221287_1_, AbstractRaiderEntity p_221287_2_) booleanaddWaveMob(int p_221300_1_, AbstractRaiderEntity p_221300_2_, boolean p_221300_3_) private BlockPosfindRandomSpawnPos(int p_221298_1_, int p_221298_2_) intprivate intgetDefaultNumSpawns(Raid.WaveMember p_221330_1_, int p_221330_2_, boolean p_221330_3_) floatintfloatintgetId()getLeader(int p_221332_1_) static ItemStackgetLevel()intintgetNumGroups(Difficulty p_221306_1_) private intgetPotentialBonusSpawns(Raid.WaveMember p_221335_1_, Random p_221335_2_, int p_221335_3_, DifficultyInstance p_221335_4_, boolean p_221335_5_) intgetValidSpawnPos(int p_221313_1_) private booleanbooleanprivate booleanprivate booleanbooleanisActive()booleanprivate booleanbooleanisLoss()booleanisOver()booleanbooleanbooleanvoidjoinRaid(int p_221317_1_, AbstractRaiderEntity p_221317_2_, BlockPos p_221317_3_, boolean p_221317_4_) private voidprivate voidvoidremoveFromRaid(AbstractRaiderEntity p_221322_1_, boolean p_221322_2_) voidremoveLeader(int p_221296_1_) save(CompoundNBT p_221326_1_) private voidprivate voidsetDirty()voidsetLeader(int p_221324_1_, AbstractRaiderEntity p_221324_2_) private booleanprivate booleanprivate voidspawnGroup(BlockPos p_221294_1_) voidstop()voidtick()voidprivate voidprivate voidprivate 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
-