Package net.minecraft.world.entity.raid
Class Raid
java.lang.Object
net.minecraft.world.entity.raid.Raid
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final int
private static final int
private static final int
private int
private int
private BlockPos
static final int
private static final int
private int
private static final int
private final int
private final ServerLevel
private static final int
static final int
static final int
private static final int
private final int
private static final String
private static final int
private static final int
private int
private static final Component
private static final Component
private static final Component
static final int
private static final int
private int
private static final String
private final ServerBossEvent
private final RandomSource
private static final int
private boolean
private Raid.RaidStatus
static final int
private long
private float
static final int
static final int
private static final int
-
Constructor Summary
ConstructorDescriptionRaid
(int p_37692_, ServerLevel p_37693_, BlockPos p_37694_) Raid
(ServerLevel p_37696_, CompoundTag p_37697_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
absorbBadOmen
(Player p_37729_) void
addHeroOfTheVillage
(Entity p_37727_) private boolean
addWaveMob
(int p_37753_, Raider p_37754_) boolean
addWaveMob
(int p_37719_, Raider p_37720_, boolean p_37721_) private BlockPos
findRandomSpawnPos
(int p_37708_, int p_37709_) int
private int
getDefaultNumSpawns
(Raid.RaiderType p_37731_, int p_37732_, boolean p_37733_) float
int
float
int
getId()
getLeader
(int p_37751_) static ItemStack
getLevel()
int
int
getNumGroups
(Difficulty p_37725_) private int
getPotentialBonusSpawns
(Raid.RaiderType p_219829_, RandomSource p_219830_, int p_219831_, DifficultyInstance p_219832_, boolean p_219833_) float
int
getValidSpawnPos
(int p_37764_) private boolean
boolean
private boolean
private boolean
boolean
isActive()
boolean
private boolean
boolean
isLoss()
boolean
isOver()
boolean
boolean
boolean
void
private void
private void
void
removeFromRaid
(Raider p_37741_, boolean p_37742_) void
removeLeader
(int p_37759_) save
(CompoundTag p_37748_) void
setBadOmenLevel
(int p_150219_) private void
private void
setDirty()
void
private boolean
private boolean
private void
spawnGroup
(BlockPos p_37756_) void
stop()
void
tick()
void
private void
private void
private Predicate<ServerPlayer>
-
Field Details
-
SECTION_RADIUS_FOR_FINDING_NEW_VILLAGE_CENTER
private static final int SECTION_RADIUS_FOR_FINDING_NEW_VILLAGE_CENTER- See Also:
-
ATTEMPT_RAID_FARTHEST
private static final int ATTEMPT_RAID_FARTHEST- See Also:
-
ATTEMPT_RAID_CLOSE
private static final int ATTEMPT_RAID_CLOSE- See Also:
-
ATTEMPT_RAID_INSIDE
private static final int ATTEMPT_RAID_INSIDE- See Also:
-
VILLAGE_SEARCH_RADIUS
private static final int VILLAGE_SEARCH_RADIUS- See Also:
-
RAID_TIMEOUT_TICKS
private static final int RAID_TIMEOUT_TICKS- See Also:
-
NUM_SPAWN_ATTEMPTS
private static final int NUM_SPAWN_ATTEMPTS- See Also:
-
OMINOUS_BANNER_PATTERN_NAME
- See Also:
-
RAIDERS_REMAINING
- See Also:
-
VILLAGE_RADIUS_BUFFER
public static final int VILLAGE_RADIUS_BUFFER- See Also:
-
POST_RAID_TICK_LIMIT
private static final int POST_RAID_TICK_LIMIT- See Also:
-
DEFAULT_PRE_RAID_TICKS
private static final int DEFAULT_PRE_RAID_TICKS- See Also:
-
MAX_NO_ACTION_TIME
public static final int MAX_NO_ACTION_TIME- See Also:
-
MAX_CELEBRATION_TICKS
public static final int MAX_CELEBRATION_TICKS- See Also:
-
OUTSIDE_RAID_BOUNDS_TIMEOUT
private static final int OUTSIDE_RAID_BOUNDS_TIMEOUT- See Also:
-
TICKS_PER_DAY
public static final int TICKS_PER_DAY- See Also:
-
DEFAULT_MAX_BAD_OMEN_LEVEL
public static final int DEFAULT_MAX_BAD_OMEN_LEVEL- See Also:
-
LOW_MOB_THRESHOLD
private static final int LOW_MOB_THRESHOLD- See Also:
-
RAID_NAME_COMPONENT
-
RAID_BAR_VICTORY_COMPONENT
-
RAID_BAR_DEFEAT_COMPONENT
-
HERO_OF_THE_VILLAGE_DURATION
private static final int HERO_OF_THE_VILLAGE_DURATION- See Also:
-
VALID_RAID_RADIUS_SQR
public static final int VALID_RAID_RADIUS_SQR- See Also:
-
RAID_REMOVAL_THRESHOLD_SQR
public static final int RAID_REMOVAL_THRESHOLD_SQR- See Also:
-
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() -
getTotalHealth
public float getTotalHealth() -
getAllRaiders
-
getLevel
-
isStarted
public boolean isStarted() -
getGroupsSpawned
public int getGroupsSpawned() -
validPlayer
-
updatePlayers
private void updatePlayers() -
getMaxBadOmenLevel
public int getMaxBadOmenLevel() -
getBadOmenLevel
public int getBadOmenLevel() -
setBadOmenLevel
public void setBadOmenLevel(int p_150219_) -
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
-
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_37759_) -
getCenter
-
setCenter
-
getId
public int getId() -
getDefaultNumSpawns
-
getPotentialBonusSpawns
private int getPotentialBonusSpawns(Raid.RaiderType p_219829_, RandomSource p_219830_, int p_219831_, DifficultyInstance p_219832_, boolean p_219833_) -
isActive
public boolean isActive() -
save
-
getNumGroups
-
getEnchantOdds
public float getEnchantOdds() -
addHeroOfTheVillage
-