Class Sprinkler
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 ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class io.github.pylonmc.pylon.core.block.PylonBlock
io.github.pylonmc.pylon.core.block.PylonBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock
io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock
io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock
io.github.pylonmc.pylon.core.block.base.PylonTickingBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WateringSettingsstatic final intstatic final doubleFields inherited from class io.github.pylonmc.pylon.core.block.PylonBlock
CompanionFields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock
CompanionFields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock
CompanionFields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonFlowerPotManipulated(io.papermc.paper.event.player.PlayerFlowerPotManipulateEvent event) voidtick(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, writeDebugInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonBreakHandler
onBreakMethods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock
addEntity, addEntity, areAllHeldEntitiesLoaded, getHeldEntities, getHeldEntity, getHeldEntity, getHeldEntityOrThrow, getHeldEntityOrThrow, getHeldEntityUuid, getHeldEntityUuidOrThrow, getHeldPylonEntity, getHeldPylonEntityOrThrow, isHeldEntityPresent, postBreakMethods 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, setFluidCapacityMethods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonFluidPointDirectional
getDirectionalPoint, getFacingMethods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock
getTickInterval, isAsync, setAsync, setTickInterval
-
Field Details
-
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:
onFlowerPotManipulatedin interfaceio.github.pylonmc.pylon.core.block.base.PylonFlowerPot
-
tick
public void tick(double deltaSeconds) - Specified by:
tickin interfaceio.github.pylonmc.pylon.core.block.base.PylonTickingBlock
-