Class Press
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 ClassesNested 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.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields 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
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.entity.ItemDisplaygetCover()static @NotNull org.joml.Matrix4fgetCoverTransform(double translation) @Nullable PressRecipe@NotNull io.github.pylonmc.pylon.core.block.waila.WailaConfiggetWaila(@NotNull org.bukkit.entity.Player player) voidonInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event) voidstartRecipe(PressRecipe recipe) booleantryStartRecipe(@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, 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, 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:
getWailain classio.github.pylonmc.pylon.core.block.PylonBlock
-
onInteract
public void onInteract(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event) - Specified by:
onInteractin interfaceio.github.pylonmc.pylon.core.block.base.PylonInteractBlock
-
tryStartRecipe
public boolean tryStartRecipe(@Nullable @Nullable org.bukkit.entity.Player player) -
startRecipe
-
getCover
@NotNull public @NotNull org.bukkit.entity.ItemDisplay getCover() -
getCoverTransform
@NotNull public static @NotNull org.joml.Matrix4f getCoverTransform(double translation) -
getCurrentRecipe
-