java.lang.Object
io.github.pylonmc.pylon.core.block.PylonBlock
io.github.pylonmc.pylon.base.content.machines.fluid.Sprinkler
All Implemented Interfaces:
io.github.pylonmc.pylon.core.block.base.PylonBreakHandler, io.github.pylonmc.pylon.core.block.base.PylonDirectionalBlock, io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock, io.github.pylonmc.pylon.core.block.base.PylonFlowerPot, io.github.pylonmc.pylon.core.block.base.PylonFluidBlock, io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock, io.github.pylonmc.pylon.core.block.base.PylonFluidPointDirectional, io.github.pylonmc.pylon.core.block.base.PylonTickingBlock

public class Sprinkler extends io.github.pylonmc.pylon.core.block.PylonBlock implements io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock, io.github.pylonmc.pylon.core.block.base.PylonTickingBlock, io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock, io.github.pylonmc.pylon.core.block.base.PylonFlowerPot
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

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

    io.github.pylonmc.pylon.core.block.PylonBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock

    io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock

    io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock

    io.github.pylonmc.pylon.core.block.base.PylonTickingBlock.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final WateringSettings
     
    static final int
     
    static final double
     

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

    Companion

    Fields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock

    Companion

    Fields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock

    Companion

    Fields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    onFlowerPotManipulated(io.papermc.paper.event.player.PlayerFlowerPotManipulateEvent event)
     
    void
    tick(double deltaSeconds)
     

    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

    Methods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonBreakHandler

    onBreak

    Methods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock

    addEntity, addEntity, areAllHeldEntitiesLoaded, getHeldEntities, getHeldEntity, getHeldEntity, getHeldEntityOrThrow, getHeldEntityOrThrow, getHeldEntityUuid, getHeldEntityUuidOrThrow, getHeldPylonEntity, getHeldPylonEntityOrThrow, isHeldEntityPresent, postBreak

    Methods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock

    addFluid, canSetFluid, createFluidBuffer, deleteFluidBuffer, fluidAmount, fluidAmountRequested, fluidCapacity, fluidSpaceRemaining, getSuppliedFluids, hasFluid, onFluidAdded, onFluidRemoved, removeFluid, setFluid, setFluidCapacity

    Methods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidPointDirectional

    getDirectionalPoint, getFacing

    Methods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock

    getTickInterval, isAsync, setAsync, setTickInterval
  • Field Details

    • SETTINGS

      public static final WateringSettings SETTINGS
    • TICK_INTERVAL

      public static final int TICK_INTERVAL
    • WATER_PER_SECOND

      public static final double WATER_PER_SECOND
  • Constructor Details

    • Sprinkler

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

      public Sprinkler(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
  • Method Details

    • onFlowerPotManipulated

      public void onFlowerPotManipulated(io.papermc.paper.event.player.PlayerFlowerPotManipulateEvent event)
      Specified by:
      onFlowerPotManipulated in interface io.github.pylonmc.pylon.core.block.base.PylonFlowerPot
    • tick

      public void tick(double deltaSeconds)
      Specified by:
      tick in interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock