Class ExpandLightningBolt

java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.misc.ExpandLightningBolt

@ZenRegister public class ExpandLightningBolt extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getBlocksSetOnFire(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.ServerPlayer
    getCause(net.minecraft.world.entity.LightningBolt internal)
    Gets the cause of the lightning bolt if it exists.
    static boolean
    isVisualOnly(net.minecraft.world.entity.LightningBolt internal)
    Checks if the lightning bolt is visual only.
    static void
    setVisualOnly(net.minecraft.world.entity.LightningBolt internal, boolean visualOnly)
    Sets whether the lightning bolt is visual only.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.