Class MagicAltar
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.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.VanillaMultiblockComponentNested classes/interfaces inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock
io.github.pylonmc.pylon.core.block.base.PylonTickingBlock.Companion -
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
CompanionFields inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionMagicAltar(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 TypeMethodDescriptionvoidstatic voiddrawLine(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> @Nullable MagicAltarRecipeorg.bukkit.entity.ItemDisplayvoidonInteract(org.bukkit.event.player.PlayerInteractEvent event) voidstartRecipe(MagicAltarRecipe recipe) voidtick(double deltaSeconds) voidtickRecipe(double deltaSeconds) voidwrite(@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, 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.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, validStructuresMethods inherited from interface io.github.pylonmc.pylon.core.block.base.PylonTickingBlock
getTickInterval, isAsync, setAsync, setTickInterval
-
Field Details
-
PEDESTAL_COUNT
public static final int PEDESTAL_COUNT- See Also:
-
-
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:
writein classio.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:
getComponentsin interfaceio.github.pylonmc.pylon.core.block.base.PylonSimpleMultiblock
-
onInteract
public void onInteract(org.bukkit.event.player.PlayerInteractEvent event) - Specified by:
onInteractin interfaceio.github.pylonmc.pylon.core.block.base.PylonInteractBlock
-
tick
public void tick(double deltaSeconds) - Specified by:
tickin interfaceio.github.pylonmc.pylon.core.block.base.PylonTickingBlock
-
getPedestals
-
getCurrentRecipe
-
getItemDisplay
public org.bukkit.entity.ItemDisplay getItemDisplay() -
startRecipe
-
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)
-