java.lang.Object
io.github.pylonmc.pylon.core.block.PylonBlock
io.github.pylonmc.pylon.base.content.machines.simple.MagicAltar
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.PylonInteractBlock, io.github.pylonmc.pylon.core.block.base.PylonMultiblock, io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock, io.github.pylonmc.pylon.core.block.base.PylonTickingBlock

public class MagicAltar extends io.github.pylonmc.pylon.core.block.PylonBlock implements io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock, io.github.pylonmc.pylon.core.block.base.PylonTickingBlock, io.github.pylonmc.pylon.core.block.base.PylonInteractBlock
  • Nested Class Summary

    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.PylonSimpleMultiblock

    io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.Companion, io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.MultiblockComponent, io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.MultiblockGhostBlock, io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.PylonMultiblockComponent, io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.VanillaMultiblockComponent

    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 int
     

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

    Companion

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

    Companion

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
     
    static void
    drawLine(org.bukkit.Location start, org.bukkit.Location end, double spacing, Consumer<org.bukkit.Location> spawnParticle)
     
    void
     
    @NotNull Map<org.joml.Vector3i,io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.MultiblockComponent>
     
     
    org.bukkit.entity.ItemDisplay
     
     
    void
    onInteract(org.bukkit.event.player.PlayerInteractEvent event)
     
    void
     
    void
    tick(double deltaSeconds)
     
    void
    tickRecipe(double deltaSeconds)
     
    void
    write(@NotNull org.bukkit.persistence.PersistentDataContainer pdc)
     

    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, 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.PylonMultiblock

    getBlock, isFormedAndFullyLoaded, onMultiblockFormed, onMultiblockUnformed

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

    checkFormed, getChunksOccupied, getFacing, getHorizontalRadius, getMaxCorner, getMinCorner, isPartOfMultiblock, setFacing, spawnGhostBlocks, updateGhostBlockColors, validStructures

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

    getTickInterval, isAsync, setAsync, setTickInterval
  • Field Details

  • Constructor Details

    • MagicAltar

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

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

    • write

      public void write(@NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
      Overrides:
      write in class io.github.pylonmc.pylon.core.block.PylonBlock
    • getComponents

      @NotNull public @NotNull Map<org.joml.Vector3i,io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.MultiblockComponent> getComponents()
      Specified by:
      getComponents in interface io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock
    • onInteract

      public void onInteract(org.bukkit.event.player.PlayerInteractEvent event)
      Specified by:
      onInteract in interface io.github.pylonmc.pylon.core.block.base.PylonInteractBlock
    • tick

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

      public List<Pedestal> getPedestals()
    • getCurrentRecipe

      @Nullable public @Nullable MagicAltarRecipe getCurrentRecipe()
    • getItemDisplay

      public org.bukkit.entity.ItemDisplay getItemDisplay()
    • startRecipe

      public void startRecipe(MagicAltarRecipe recipe)
    • tickRecipe

      public void tickRecipe(double deltaSeconds)
    • finishRecipe

      public void finishRecipe()
    • cancelRecipe

      public void cancelRecipe()
    • drawLine

      public static void drawLine(org.bukkit.Location start, org.bukkit.Location end, double spacing, Consumer<org.bukkit.Location> spawnParticle)