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 TypeMethodDescriptionboolean
org.bukkit.Material[]
static Set
<org.bukkit.Tag<org.bukkit.Material>> org.bukkit.block.BlockFace
int
hashCode()
boolean
This returns whether thisMultiBlock
is 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 thisMultiBlock
is a symmetric structure or whether the left and right side differ.- Returns:
- Whether this
MultiBlock
is a symmetric structure
-
toString
-