Class MultiBlock
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.multiblocks.MultiBlock
A
MultiBlock represents a structure build in a World.
A MultiBlock is often linked to a MultiBlockMachine and is used
to recognize that machine in a MultiBlockInteractEvent.- Author:
- TheBusyBiscuit, Liruxo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultiBlock(SlimefunItem item, org.bukkit.Material[] build, org.bukkit.block.BlockFace trigger) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.bukkit.Material[]static Set<org.bukkit.Tag<org.bukkit.Material>> org.bukkit.block.BlockFaceinthashCode()booleanThis returns whether thisMultiBlockis a symmetric structure or whether the left and right side differ.toString()
-
Constructor Details
-
MultiBlock
public MultiBlock(@Nonnull SlimefunItem item, org.bukkit.Material[] build, @Nonnull org.bukkit.block.BlockFace trigger)
-
-
Method Details
-
getSupportedTags
-
getSlimefunItem
-
getStructure
@Nonnull public org.bukkit.Material[] getStructure() -
getTriggerBlock
@Nonnull public org.bukkit.block.BlockFace getTriggerBlock() -
equals
-
hashCode
public int hashCode() -
isSymmetric
public boolean isSymmetric()This returns whether thisMultiBlockis a symmetric structure or whether the left and right side differ.- Returns:
- Whether this
MultiBlockis a symmetric structure
-
toString
-