Class Grindstone
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.CompanionNested 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
FieldsFields inherited from class io.github.pylonmc.pylon.core.block.PylonBlock
CompanionFields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionGrindstone(@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 TypeMethodDescription@NotNull Map<org.joml.Vector3i, io.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock.MultiblockComponent> org.bukkit.entity.ItemDisplay@Nullable GrindstoneRecipeorg.bukkit.entity.ItemDisplaystatic @NotNull org.joml.Matrix4fgetStoneDisplayMatrix(double translation, double rotation) booleanvoidonBreak(@NotNull List<org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.pylon.core.block.context.BlockBreakContext context) voidonInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event) booleantryStartRecipe(@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, 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.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.PylonMultiblock
getBlock, isFormedAndFullyLoaded, onMultiblockFormed, onMultiblockUnformedMethods 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:
getComponentsin interfaceio.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock
-
onInteract
public void onInteract(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event) - Specified by:
onInteractin interfaceio.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:
onBreakin interfaceio.github.pylonmc.pylon.core.block.base.PylonBreakHandler
-
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()
-