net.minecraft.world.entity.raid

public class Raid

crk
net.minecraft.world.entity.raid.Raid
net.minecraft.class_3765
net.minecraft.village.raid.Raid
net.minecraft.world.entity.raid.Raid

Field summary

Modifier and TypeField
public static final SpawnPlacementType
a
RAVAGER_SPAWN_PLACEMENT_TYPE
field_53976
RAVAGER_SPAWN_LOCATION
private static final int
i
ALLOW_SPAWNING_WITHIN_VILLAGE_SECONDS_THRESHOLD
field_53977
field_53977
private static final int
j
SECTION_RADIUS_FOR_FINDING_NEW_VILLAGE_CENTER
field_30676
field_30676
private static final int
k
VILLAGE_SEARCH_RADIUS
field_30680
field_30680
private static final int
l
RAID_TIMEOUT_TICKS
field_30681
field_30681
private static final int
m
NUM_SPAWN_ATTEMPTS
field_30682
field_30682
private static final Component
n
OMINOUS_BANNER_PATTERN_NAME
field_30683
OMINOUS_BANNER_TRANSLATION_KEY
private static final String
o
RAIDERS_REMAINING
field_30684
RAIDERS_REMAINING_TRANSLATION_KEY
public static final int
b
VILLAGE_RADIUS_BUFFER
field_30669
field_30669
private static final int
p
POST_RAID_TICK_LIMIT
field_30685
field_30685
private static final int
q
DEFAULT_PRE_RAID_TICKS
field_30686
DEFAULT_PRE_RAID_TICKS
public static final int
c
MAX_NO_ACTION_TIME
field_30670
MAX_DESPAWN_COUNTER
public static final int
d
MAX_CELEBRATION_TICKS
field_30671
field_30671
private static final int
r
OUTSIDE_RAID_BOUNDS_TIMEOUT
field_30687
field_30687
public static final int
e
TICKS_PER_DAY
field_30672
field_30672
public static final int
f
DEFAULT_MAX_RAID_OMEN_LEVEL
field_30673
field_30673
private static final int
s
LOW_MOB_THRESHOLD
field_30688
field_30688
private static final Component
t
RAID_NAME_COMPONENT
field_19016
EVENT_TEXT
private static final Component
u
RAID_BAR_VICTORY_COMPONENT
field_19019
VICTORY_TITLE
private static final Component
v
RAID_BAR_DEFEAT_COMPONENT
field_19020
DEFEAT_TITLE
private static final int
w
HERO_OF_THE_VILLAGE_DURATION
field_30689
MAX_ACTIVE_TICKS
private static final int
x
VALID_RAID_RADIUS
field_53978
field_53978
public static final int
g
VALID_RAID_RADIUS_SQR
field_30674
field_30674
public static final int
h
RAID_REMOVAL_THRESHOLD_SQR
field_30675
SQUARED_MAX_RAIDER_DISTANCE
private final Map<Integer, Raider>
y
groupToLeaderMap
field_16615
waveToCaptain
private final Map<Integer, Set<Raider>>
z
groupRaiderMap
field_16618
waveToRaiders
private final Set<UUID>
A
heroesOfTheVillage
field_19021
heroesOfTheVillage
private long
B
ticksActive
field_16605
ticksActive
private BlockPos
C
center
field_16613
center
private final ServerLevel
D
level
field_16619
world
private boolean
E
started
field_16611
started
private final int
F
id
field_16625
id
private float
G
totalHealth
field_16620
totalHealth
private int
H
raidOmenLevel
field_16623
badOmenLevel
private boolean
I
active
field_16606
active
private int
J
groupsSpawned
field_16621
wavesSpawned
private final ServerBossEvent
K
raidEvent
field_16607
bar
private int
L
postRaidTicks
field_16616
postRaidTicks
private int
M
raidCooldownTicks
field_16614
preRaidTicks
private final RandomSource
N
random
field_16608
random
private final int
O
numGroups
field_19022
waveCount
private Raid$RaidStatus
P
status
field_19023
status
private int
Q
celebrationTicks
field_19024
finishCooldown
private Optional<BlockPos>
R
waveSpawnPos
field_19172
preCalculatedRaidersSpawnLocation

Constructor summary

ModifierConstructor
public (int id, ServerLevel world, BlockPos pos)
public (ServerLevel world, CompoundTag nbt)

Method summary

Modifier and TypeMethod
public boolean
a()
isOver()
method_16832()
isFinished()
public boolean
b()
isBetweenWaves()
method_20020()
isPreRaid()
public boolean
c()
hasFirstWaveSpawned()
method_20021()
hasSpawned()
public boolean
d()
isStopped()
method_20022()
hasStopped()
public boolean
e()
isVictory()
method_20023()
hasWon()
public boolean
f()
isLoss()
method_20024()
hasLost()
public float
g()
getTotalHealth()
method_35212()
getTotalHealth()
public Set<Raider>
h()
getAllRaiders()
method_35213()
getAllRaiders()
public Level
i()
getLevel()
method_16831()
getWorld()
public boolean
j()
isStarted()
method_16524()
hasStarted()
public int
k()
getGroupsSpawned()
method_16490()
getGroupsSpawned()
private Predicate<ServerPlayer>
w()
validPlayer()
method_16501()
isInRaidDistance()
private void
x()
updatePlayers()
method_16499()
updateBarToPlayers()
public int
l()
getMaxRaidOmenLevel()
method_16514()
getMaxAcceptableBadOmenLevel()
public int
m()
getRaidOmenLevel()
method_16493()
getBadOmenLevel()
public void
a(int arg0)
setRaidOmenLevel(int arg0)
method_35211(int arg0)
setBadOmenLevel(int badOmenLevel)
public boolean
a(asi arg0)
absorbRaidOmen(ServerPlayer arg0)
method_16518(class_3222 arg0)
start(ServerPlayerEntity player)
public void
n()
stop()
method_16506()
invalidate()
public void
o()
tick()
method_16509()
tick()
private void
y()
moveRaidCenterToNearbyVillageSection()
method_20511()
moveRaidCenter()
private Optional<BlockPos>
z()
getValidSpawnPos()
method_20267()
getRaidersSpawnLocation()
private boolean
A()
hasMoreWaves()
method_16833()
shouldSpawnMoreGroups()
private boolean
B()
isFinalWave()
method_20012()
hasSpawnedFinalWave()
private boolean
C()
hasBonusWave()
method_20013()
hasExtraWave()
private boolean
D()
hasSpawnedBonusWave()
method_20014()
hasSpawnedExtraWave()
private boolean
E()
shouldSpawnBonusGroup()
method_20015()
isSpawningExtraWave()
private void
F()
updateRaiders()
method_16834()
removeObsoleteRaiders()
private void
a(jh arg0)
playSound(BlockPos arg0)
method_16521(class_2338 arg0)
playRaidHorn(BlockPos pos)
private void
b(jh arg0)
spawnGroup(BlockPos arg0)
method_16522(class_2338 arg0)
spawnNextWave(BlockPos pos)
public void
a(int arg0, crl arg1, jh arg2, boolean arg3)
joinRaid(int arg0, Raider arg1, BlockPos arg2, boolean arg3)
method_16516(int arg0, class_3763 arg1, class_2338 arg2, boolean arg3)
addRaider(int wave, RaiderEntity raider, BlockPos pos, boolean existing)
public void
p()
updateBossbar()
method_16523()
updateBar()
public float
q()
getHealthOfLivingRaiders()
method_16513()
getCurrentRaiderHealth()
private boolean
G()
shouldSpawnGroup()
method_16519()
canSpawnRaiders()
public int
r()
getTotalRaidersAlive()
method_16517()
getRaiderCount()
public void
a(crl arg0, boolean arg1)
removeFromRaid(Raider arg0, boolean arg1)
method_16510(class_3763 arg0, boolean arg1)
removeFromWave(RaiderEntity entity, boolean countHealth)
private void
H()
setDirty()
method_16520()
markDirty()
public static ItemStack
a(jr<dun> arg0)
getOminousBannerInstance(HolderGetter<BannerPattern> arg0)
method_61558(class_7871<class_2582> arg0)
createOminousBanner(RegistryEntryLookup<BannerPattern> bannerPatternLookup)
public Raider
b(int arg0)
getLeader(int arg0)
method_16496(int arg0)
getCaptain(int wave)
private BlockPos
d(int arg0)
findRandomSpawnPos(int arg0)
method_16525(int arg0)
findRandomRaidersSpawnLocation(int proximity)
private boolean
b(int arg0, crl arg1)
addWaveMob(int arg0, Raider arg1)
method_16505(int arg0, class_3763 arg1)
addToWave(int wave, RaiderEntity entity)
public boolean
a(int arg0, crl arg1, boolean arg2)
addWaveMob(int arg0, Raider arg1, boolean arg2)
method_16487(int arg0, class_3763 arg1, boolean arg2)
addToWave(int wave, RaiderEntity entity, boolean countHealth)
public void
a(int arg0, crl arg1)
setLeader(int arg0, Raider arg1)
method_16491(int arg0, class_3763 arg1)
setWaveCaptain(int wave, RaiderEntity entity)
public void
c(int arg0)
removeLeader(int arg0)
method_16500(int arg0)
removeLeader(int wave)
public BlockPos
s()
getCenter()
method_16495()
getCenter()
private void
c(jh arg0)
setCenter(BlockPos arg0)
method_20509(class_2338 arg0)
setCenter(BlockPos center)
public int
t()
getId()
method_16494()
getRaidId()
private int
a(crk$b arg0, int arg1, boolean arg2)
getDefaultNumSpawns(Raid$RaiderType arg0, int arg1, boolean arg2)
method_20018(class_3765$class_3766 arg0, int arg1, boolean arg2)
getCount(Raid$Member member, int wave, boolean extra)
private int
a(crk$b arg0, bam arg1, int arg2, bth arg3, boolean arg4)
getPotentialBonusSpawns(Raid$RaiderType arg0, RandomSource arg1, int arg2, DifficultyInstance arg3, boolean arg4)
method_20019(class_3765$class_3766 arg0, class_5819 arg1, int arg2, class_1266 arg3, boolean arg4)
getBonusCount(Raid$Member member, Random random, int wave, LocalDifficulty localDifficulty, boolean extra)
public boolean
u()
isActive()
method_16504()
isActive()
public CompoundTag
a(ux arg0)
save(CompoundTag arg0)
method_16502(class_2487 arg0)
writeNbt(NbtCompound nbt)
public int
a(btg arg0)
getNumGroups(Difficulty arg0)
method_20016(class_1267 arg0)
getMaxWaves(Difficulty difficulty)
public float
v()
getEnchantOdds()
method_20025()
getEnchantmentChance()
public void
a(bvk arg0)
addHeroOfTheVillage(Entity arg0)
method_20017(class_1297 arg0)
addHero(Entity entity)