Class CargoInteractor
java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.cargo.CargoInteractor
- All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarDirectionalBlock, io.github.pylonmc.rebar.block.base.RebarMultiblock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
- Direct Known Subclasses:
CargoExtractor, CargoInserter
public abstract class CargoInteractor
extends io.github.pylonmc.rebar.block.RebarBlock
implements io.github.pylonmc.rebar.block.base.RebarDirectionalBlock, io.github.pylonmc.rebar.block.base.RebarMultiblock
-
Nested Class Summary
Nested ClassesNested 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.RebarDirectionalBlock
io.github.pylonmc.rebar.block.base.RebarDirectionalBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<org.bukkit.Material> static final org.bukkit.NamespacedKeyprotected @Nullable StringFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarDirectionalBlock
Companion -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCargoInteractor(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) protectedCargoInteractor(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc) -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull Set<@NotNull io.github.pylonmc.rebar.util.position.ChunkPosition> @NotNull org.bukkit.block.Block@Nullable StringbooleanisPartOfMultiblock(@NotNull org.bukkit.block.Block otherBlock) abstract booleanisValidGroup(@NotNull io.github.pylonmc.rebar.logistics.LogisticGroup group) voidvoidvoidsetTargetLogisticGroup(@Nullable String targetLogisticGroup) voidwrite(@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, 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
getKey, keyMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarDirectionalBlock
getFacing, setFacingMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarMultiblock
getBlock, isFormedAndFullyLoaded, onMultiblockFormed, onMultiblockRefreshed, onMultiblockUnformed
-
Field Details
-
TARGET_LOGISTIC_GROUP_KEY
public static final org.bukkit.NamespacedKey TARGET_LOGISTIC_GROUP_KEY -
GROUP_MATERIALS
-
targetLogisticGroup
-
targetGroups
-
-
Constructor Details
-
CargoInteractor
protected CargoInteractor(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) -
CargoInteractor
protected CargoInteractor(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
-
-
Method Details
-
postInitialise
public void postInitialise()- Overrides:
postInitialisein classio.github.pylonmc.rebar.block.RebarBlock
-
write
public void write(@NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc) - Overrides:
writein classio.github.pylonmc.rebar.block.RebarBlock
-
getTargetBlock
@NotNull public @NotNull org.bukkit.block.Block getTargetBlock() -
refreshTargetInfo
public void refreshTargetInfo() -
getChunksOccupied
@NotNull public @NotNull Set<@NotNull 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
-
isValidGroup
public abstract boolean isValidGroup(@NotNull @NotNull io.github.pylonmc.rebar.logistics.LogisticGroup group) -
setTargetLogisticGroup
-
getTargetLogisticGroup
-