java.lang.Object
io.github.pylonmc.pylon.core.block.PylonBlock
io.github.pylonmc.pylon.base.content.machines.simple.Press
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.PylonFluidBlock, io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock, io.github.pylonmc.pylon.core.block.base.PylonFluidPointDirectional, io.github.pylonmc.pylon.core.block.base.PylonInteractBlock

public class Press extends io.github.pylonmc.pylon.core.block.PylonBlock implements io.github.pylonmc.pylon.core.block.base.PylonInteractBlock, io.github.pylonmc.pylon.core.block.base.PylonFluidBufferBlock, io.github.pylonmc.pylon.core.block.base.PylonEntityHolderBlock
  • 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

    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    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.PylonEntityHolderBlock

    Companion

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.entity.ItemDisplay
     
    static @NotNull org.joml.Matrix4f
    getCoverTransform(double translation)
     
    @Nullable PressRecipe
     
    @NotNull io.github.pylonmc.pylon.core.block.waila.WailaConfig
    getWaila(@NotNull org.bukkit.entity.Player player)
     
    void
    onInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event)
     
    void
     
    boolean
    tryStartRecipe(@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, 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
  • Field Details

    • TIME_PER_ITEM_TICKS

      public static final int TIME_PER_ITEM_TICKS
    • RETURN_TO_START_TIME_TICKS

      public static final int RETURN_TO_START_TIME_TICKS
    • CAPACITY_MB

      public static final int CAPACITY_MB
  • Constructor Details

    • Press

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

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

    • getWaila

      @NotNull public @NotNull io.github.pylonmc.pylon.core.block.waila.WailaConfig getWaila(@NotNull @NotNull org.bukkit.entity.Player player)
      Overrides:
      getWaila in class io.github.pylonmc.pylon.core.block.PylonBlock
    • 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
    • tryStartRecipe

      public boolean tryStartRecipe(@Nullable @Nullable org.bukkit.entity.Player player)
    • startRecipe

      public void startRecipe(PressRecipe recipe)
    • getCover

      @NotNull public @NotNull org.bukkit.entity.ItemDisplay getCover()
    • getCoverTransform

      @NotNull public static @NotNull org.joml.Matrix4f getCoverTransform(double translation)
    • getCurrentRecipe

      @Nullable public @Nullable PressRecipe getCurrentRecipe()