Class Quarry
java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.hydraulics.Quarry
- All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarMultiblock, io.github.pylonmc.rebar.block.base.RebarProcessor, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
- Direct Known Subclasses:
DieselQuarry
public abstract class Quarry
extends io.github.pylonmc.rebar.block.RebarBlock
implements io.github.pylonmc.rebar.block.base.RebarMultiblock, io.github.pylonmc.rebar.block.base.RebarProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.rebar.block.RebarBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarProcessor
io.github.pylonmc.rebar.block.base.RebarProcessor.Companion, io.github.pylonmc.rebar.block.base.RebarProcessor.ProcessorData -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.NamespacedKeyprotected final List<io.github.pylonmc.rebar.util.position.BlockPosition> static final org.bukkit.NamespacedKeyprotected final Set<io.github.pylonmc.rebar.util.position.ChunkPosition> protected intstatic final org.bukkit.NamespacedKeyfinal intFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarProcessor
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract @Nullable IntegergetBreakTicks(@NotNull org.bukkit.block.Block block) @NotNull Set<io.github.pylonmc.rebar.util.position.ChunkPosition> booleanisPartOfMultiblock(@NotNull org.bukkit.block.Block otherBlock) voidprotected voidvoidwrite(@NotNull org.bukkit.persistence.PersistentDataContainer pdc) Methods inherited from class io.github.pylonmc.rebar.block.RebarBlock
getBlock, getBlockTextureEntity, getBlockTextureItem, getBlockTextureProperties, getDefaultItem, getDefaultWailaTranslationKey, getDisableBlockTextureEntity, getDropItem, getKey, getLoreTranslationKey, getNameTranslationKey, getPickItem, getRebarBlock, getRebarBlockKeyKey, getRebarBlockPositionKey, getRebarBlockTextureEntityKey, getSchema, getSettings, getWaila, isVanillaBlock, postInitialise, postLoad, refreshBlockTextureItem, register, scheduleBlockTextureItemRefresh, setDisableBlockTextureEntity, setupBlockTexture, writeDebugInfoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarMultiblock
getBlock, isFormedAndFullyLoaded, onMultiblockFormed, onMultiblockUnformedMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarProcessor
finishProcess, getProcessProgressItem, getProcessTicksRemaining, getProcessTimeTicks, isProcessing, onProcessFinished, progressProcess, setProcessProgressItem, startProcess, stopProcess
-
Field Details
-
INDEX_KEY
public static final org.bukkit.NamespacedKey INDEX_KEY -
BLOCK_POSITIONS_KEY
public static final org.bukkit.NamespacedKey BLOCK_POSITIONS_KEY -
CHUNK_POSITIONS_KEY
public static final org.bukkit.NamespacedKey CHUNK_POSITIONS_KEY -
radius
public final int radius -
blockPositions
-
chunkPositions
-
index
protected int index
-
-
Constructor Details
-
Quarry
public Quarry(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) -
Quarry
public Quarry(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
-
-
Method Details
-
write
public void write(@NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc) - Overrides:
writein classio.github.pylonmc.rebar.block.RebarBlock
-
updateQuarry
protected void updateQuarry() -
getChunksOccupied
@NotNull public @NotNull Set<io.github.pylonmc.rebar.util.position.ChunkPosition> getChunksOccupied()- Specified by:
getChunksOccupiedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
checkFormed
public boolean checkFormed()- Specified by:
checkFormedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
isPartOfMultiblock
public boolean isPartOfMultiblock(@NotNull @NotNull org.bukkit.block.Block otherBlock) - Specified by:
isPartOfMultiblockin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
onMultiblockRefreshed
public void onMultiblockRefreshed()- Specified by:
onMultiblockRefreshedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
getBreakTicks
@Nullable protected abstract @Nullable Integer getBreakTicks(@NotNull @NotNull org.bukkit.block.Block block)
-