Class ExpandLightningBolt
java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.misc.ExpandLightningBolt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBlocksSetOnFire(net.minecraft.world.entity.LightningBolt internal) Gets the number of blocks that will be set on fire by the lightning bolt.static net.minecraft.server.level.ServerPlayergetCause(net.minecraft.world.entity.LightningBolt internal) Gets the cause of the lightning bolt if it exists.static booleanisVisualOnly(net.minecraft.world.entity.LightningBolt internal) Checks if the lightning bolt is visual only.static voidsetVisualOnly(net.minecraft.world.entity.LightningBolt internal, boolean visualOnly) Sets whether the lightning bolt is visual only.
-
Constructor Details
-
ExpandLightningBolt
public ExpandLightningBolt()
-
-
Method Details
-
setVisualOnly
public static void setVisualOnly(net.minecraft.world.entity.LightningBolt internal, boolean visualOnly) Sets whether the lightning bolt is visual only.- Parameters:
visualOnly- Whether the lightning bolt is visual only.
-
isVisualOnly
public static boolean isVisualOnly(net.minecraft.world.entity.LightningBolt internal) Checks if the lightning bolt is visual only.- Returns:
- Whether the lightning bolt is visual only.
-
getCause
public static net.minecraft.server.level.ServerPlayer getCause(net.minecraft.world.entity.LightningBolt internal) Gets the cause of the lightning bolt if it exists.- Returns:
- The cause of the lightning bolt.
-
getBlocksSetOnFire
public static int getBlocksSetOnFire(net.minecraft.world.entity.LightningBolt internal) Gets the number of blocks that will be set on fire by the lightning bolt.- Returns:
- The number of blocks that will be set on fire by the lightning bolt.
-