Class ExplosiveTarget

java.lang.Object
io.github.pylonmc.pylon.core.block.PylonBlock
io.github.pylonmc.pylon.base.content.building.ExplosiveTarget
All Implemented Interfaces:
io.github.pylonmc.pylon.core.block.base.PylonTargetBlock

public class ExplosiveTarget extends io.github.pylonmc.pylon.core.block.PylonBlock implements io.github.pylonmc.pylon.core.block.base.PylonTargetBlock
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.github.pylonmc.pylon.core.block.PylonBlock

    io.github.pylonmc.pylon.core.block.PylonBlock.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
     
    final double
     

    Fields inherited from class io.github.pylonmc.pylon.core.block.PylonBlock

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExplosiveTarget(org.bukkit.block.Block block, io.github.pylonmc.pylon.core.block.context.BlockCreateContext context)
     
    ExplosiveTarget(org.bukkit.block.Block block, org.bukkit.persistence.PersistentDataContainer pdc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onHit(@NotNull io.papermc.paper.event.block.TargetHitEvent event)
     

    Methods inherited from class io.github.pylonmc.pylon.core.block.PylonBlock

    getBlock, getBlockTextureEntity, getBlockTextureItem, getDefaultItem, getDefaultWailaTranslationKey, getDisableBlockTextureEntity, getDropItem, getKey, getPickItem, getPylonBlock, getSchema, getSettings, getWaila, isVanillaBlock, postLoad, register, setDisableBlockTextureEntity, setupBlockTexture, updateBlockTexture, write, writeDebugInfo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • explosivePower

      public final double explosivePower
    • createsFire

      public final boolean createsFire
  • Constructor Details

    • ExplosiveTarget

      public ExplosiveTarget(org.bukkit.block.Block block, io.github.pylonmc.pylon.core.block.context.BlockCreateContext context)
    • ExplosiveTarget

      public ExplosiveTarget(org.bukkit.block.Block block, org.bukkit.persistence.PersistentDataContainer pdc)
  • Method Details

    • onHit

      public void onHit(@NotNull @NotNull io.papermc.paper.event.block.TargetHitEvent event)
      Specified by:
      onHit in interface io.github.pylonmc.pylon.core.block.base.PylonTargetBlock