net.minecraft.world.entity

public class LightningBolt

extends Entity

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder

bwf
net.minecraft.world.entity.LightningBolt
net.minecraft.class_1538
net.minecraft.entity.LightningEntity
net.minecraft.world.entity.EntityLightning

Field summary

Modifier and TypeField
private static final int
b
START_LIFE
field_30062
field_30062
private static final double
c
DAMAGE_RADIUS
field_33906
field_33906
private static final double
d
DETECTION_RADIUS
field_33907
field_33907
private int
e
life
field_7185
ambientTick
public long
a
seed
field_7186
seed
private int
f
flashes
field_7183
remainingActions
private boolean
g
visualOnly
field_7184
cosmetic
private ServerPlayer
h
cause
field_7182
channeler
private final Set<Entity>
i
hitEntities
field_33904
struckEntities
private int
j
blocksSetOnFire
field_33905
blocksSetOnFire

Constructor summary

ModifierConstructor
public (EntityType<? extends LightningBolt> arg0, Level arg1)

Method summary

Modifier and TypeMethod
public void
a(boolean arg0)
setVisualOnly(boolean arg0)
method_29498(boolean arg0)
setCosmetic(boolean cosmetic)
public SoundSource
dn()
getSoundSource()
method_5634()
getSoundCategory()
public ServerPlayer
l()
getCause()
method_35052()
getChanneler()
public void
b(asi arg0)
setCause(ServerPlayer arg0)
method_6961(class_3222 arg0)
setChanneler(ServerPlayerEntity channeler)
private void
s()
powerLightningRod()
method_31499()
powerLightningRod()
public void
h()
tick()
method_5773()
tick()
private BlockPos
t()
getStrikePosition()
method_36607()
getAffectedBlockPos()
private void
b(int arg0)
spawnFire(int arg0)
method_6960(int arg0)
spawnFire(int spreadAttempts)
private static void
a(dhi arg0, jh arg1)
clearCopperOnLightningStrike(Level arg0, BlockPos arg1)
method_34707(class_1937 arg0, class_2338 arg1)
cleanOxidation(World world, BlockPos pos)
private static void
a(dhi arg0, jh arg1, jh$a arg2, int arg3)
randomWalkCleaningCopper(Level arg0, BlockPos arg1, BlockPos$MutableBlockPos arg2, int arg3)
method_34709(class_1937 arg0, class_2338 arg1, class_2338$class_2339 arg2, int arg3)
cleanOxidationAround(World world, BlockPos pos, BlockPos$Mutable mutablePos, int count)
private static Optional<BlockPos>
b(dhi arg0, jh arg1)
randomStepCleaningCopper(Level arg0, BlockPos arg1)
method_34710(class_1937 arg0, class_2338 arg1)
cleanOxidationAround(World world, BlockPos pos)
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public int
m()
getBlocksSetOnFire()
method_37220()
getBlocksSetOnFire()
public Stream<Entity>
p()
getHitEntities()
method_37221()
getStruckEntities()
public final boolean
a(ash arg0, bua arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)