Class EntityLightningBolt

java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.misc.EntityLightningBolt
All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity, org.cloudburstmc.api.entity.misc.LightningBolt

public class EntityLightningBolt extends BaseEntity implements org.cloudburstmc.api.entity.misc.LightningBolt
Created by boybook on 2016/2/27.
  • Field Details

    • state

      public int state
    • liveTime

      public int liveTime
    • isEffect

      protected boolean isEffect
  • Constructor Details

    • EntityLightningBolt

      public EntityLightningBolt(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.misc.LightningBolt> type, org.cloudburstmc.api.level.Location location)
  • Method Details

    • initEntity

      protected void initEntity()
      Overrides:
      initEntity in class BaseEntity
    • isEffect

      public boolean isEffect()
      Specified by:
      isEffect in interface org.cloudburstmc.api.entity.misc.LightningBolt
    • setEffect

      public void setEffect(boolean effect)
      Specified by:
      setEffect in interface org.cloudburstmc.api.entity.misc.LightningBolt
    • attack

      public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
      Specified by:
      attack in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      attack in class BaseEntity
    • onUpdate

      public boolean onUpdate(int currentTick)
      Specified by:
      onUpdate in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      onUpdate in class BaseEntity