java.lang.Object
io.github.pylonmc.pylon.core.block.PylonBlock
io.github.pylonmc.pylon.base.content.machines.simple.Grindstone
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

public class Grindstone extends io.github.pylonmc.pylon.core.block.PylonBlock implements io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock, 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
  • 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
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull Map<org.joml.Vector3i,io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.MultiblockComponent>
     
    org.bukkit.entity.ItemDisplay
     
     
    org.bukkit.entity.ItemDisplay
     
    static @NotNull org.joml.Matrix4f
    getStoneDisplayMatrix(double translation, double rotation)
     
    boolean
     
    void
    onBreak(@NotNull List<org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.pylon.core.block.context.BlockBreakContext context)
     
    void
    onInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event)
     
    boolean
    tryStartRecipe(@NotNull GrindstoneRecipe nextRecipe, @Nullable org.bukkit.entity.Player player)
     

    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.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
  • Field Details

    • CYCLE_DURATION_TICKS

      public static final int CYCLE_DURATION_TICKS
  • Constructor Details

    • Grindstone

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

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

    • 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(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event)
      Specified by:
      onInteract in interface io.github.pylonmc.pylon.core.block.base.PylonInteractBlock
    • onBreak

      public void onBreak(@NotNull @NotNull List<org.bukkit.inventory.ItemStack> drops, @NotNull @NotNull io.github.pylonmc.pylon.core.block.context.BlockBreakContext context)
      Specified by:
      onBreak in interface io.github.pylonmc.pylon.core.block.base.PylonBreakHandler
    • getNextRecipe

      @Nullable public @Nullable GrindstoneRecipe getNextRecipe()
    • tryStartRecipe

      public boolean tryStartRecipe(@NotNull @NotNull GrindstoneRecipe nextRecipe, @Nullable @Nullable org.bukkit.entity.Player player)
    • getItemDisplay

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

      public org.bukkit.entity.ItemDisplay getStoneDisplay()
    • getStoneDisplayMatrix

      @NotNull public static @NotNull org.joml.Matrix4f getStoneDisplayMatrix(double translation, double rotation)
    • isRecipeInProgress

      public boolean isRecipeInProgress()