Package net.minecraft.world.entity.raid
Class Raid
java.lang.Object
net.minecraft.world.entity.raid.Raid
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static int
private static int
private static int
private int
private int
private BlockPos
static int
private static int
private static Component
private int
private static int
private int
private ServerLevel
private static int
static int
static int
private static int
private int
private static String
private static int
private static int
private int
private static Component
private static Component
private static Component
static int
private static int
private int
private static String
private ServerBossEvent
private Random
private static int
private boolean
private Raid.RaidStatus
static int
private long
private float
static int
private static Component
static int
private static 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_37735_, Random p_37736_, int p_37737_, DifficultyInstance p_37738_, boolean p_37739_)
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:
- Constant Field Values
-
ATTEMPT_RAID_FARTHEST
private static final int ATTEMPT_RAID_FARTHEST- See Also:
- Constant Field Values
-
ATTEMPT_RAID_CLOSE
private static final int ATTEMPT_RAID_CLOSE- See Also:
- Constant Field Values
-
ATTEMPT_RAID_INSIDE
private static final int ATTEMPT_RAID_INSIDE- See Also:
- Constant Field Values
-
VILLAGE_SEARCH_RADIUS
private static final int VILLAGE_SEARCH_RADIUS- See Also:
- Constant Field Values
-
RAID_TIMEOUT_TICKS
private static final int RAID_TIMEOUT_TICKS- See Also:
- Constant Field Values
-
NUM_SPAWN_ATTEMPTS
private static final int NUM_SPAWN_ATTEMPTS- See Also:
- Constant Field Values
-
OMINOUS_BANNER_PATTERN_NAME
- See Also:
- Constant Field Values
-
RAIDERS_REMAINING
- See Also:
- Constant Field Values
-
VILLAGE_RADIUS_BUFFER
public static final int VILLAGE_RADIUS_BUFFER- See Also:
- Constant Field Values
-
POST_RAID_TICK_LIMIT
private static final int POST_RAID_TICK_LIMIT- See Also:
- Constant Field Values
-
DEFAULT_PRE_RAID_TICKS
private static final int DEFAULT_PRE_RAID_TICKS- See Also:
- Constant Field Values
-
MAX_NO_ACTION_TIME
public static final int MAX_NO_ACTION_TIME- See Also:
- Constant Field Values
-
MAX_CELEBRATION_TICKS
public static final int MAX_CELEBRATION_TICKS- See Also:
- Constant Field Values
-
OUTSIDE_RAID_BOUNDS_TIMEOUT
private static final int OUTSIDE_RAID_BOUNDS_TIMEOUT- See Also:
- Constant Field Values
-
TICKS_PER_DAY
public static final int TICKS_PER_DAY- See Also:
- Constant Field Values
-
DEFAULT_MAX_BAD_OMEN_LEVEL
public static final int DEFAULT_MAX_BAD_OMEN_LEVEL- See Also:
- Constant Field Values
-
LOW_MOB_THRESHOLD
private static final int LOW_MOB_THRESHOLD- See Also:
- Constant Field Values
-
RAID_NAME_COMPONENT
-
VICTORY
-
DEFEAT
-
RAID_BAR_VICTORY_COMPONENT
-
RAID_BAR_DEFEAT_COMPONENT
-
HERO_OF_THE_VILLAGE_DURATION
private static final int HERO_OF_THE_VILLAGE_DURATION- See Also:
- Constant Field Values
-
VALID_RAID_RADIUS_SQR
public static final int VALID_RAID_RADIUS_SQR- See Also:
- Constant Field Values
-
RAID_REMOVAL_THRESHOLD_SQR
public static final int RAID_REMOVAL_THRESHOLD_SQR- See Also:
- Constant Field Values
-
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_37735_, Random p_37736_, int p_37737_, DifficultyInstance p_37738_, boolean p_37739_) -
isActive
public boolean isActive() -
save
-
getNumGroups
-
getEnchantOdds
public float getEnchantOdds() -
addHeroOfTheVillage
-