Class StringBlockMechanic
-
- All Implemented Interfaces:
public final class StringBlockMechanic extends CustomBlockMechanic
-
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
isTall
private final Boolean
isPlaceableOnWater
private final Tripwire
blockData
private final CustomBlockType<?>
type
private final Integer
customVariation
private final Key
model
private final BlockSounds
blockSounds
private final LightMechanic
light
private final LimitedPlacing
limitedPlacing
private final List<ClickAction>
clickActions
private final BlockLockerMechanic
blockLocker
private final Breakable
breakable
private final Boolean
isBlastResistant
private final Boolean
immovable
private final Array<out Function<ItemBuilder, ItemBuilder>>
itemModifiers
private final String
itemID
private final MechanicFactory
factory
private final ConfigurationSection
section
-
Constructor Summary
Constructors Constructor Description StringBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
Method Summary
Modifier and Type Method Description final Boolean
isTall()
final Boolean
isPlaceableOnWater()
Tripwire
getBlockData()
Tripwire
createBlockData()
final Boolean
isSapling()
final SaplingMechanic
sapling()
final Boolean
hasRandomPlace()
final List<String>
randomPlace()
-
Methods inherited from class com.nexomc.nexo.mechanics.custom_block.CustomBlockMechanic
getBlockLocker, getBlockSounds, getBreakable, getClickActions, getCustomVariation, getImmovable, getLight, getLimitedPlacing, getModel, getType, hasBlockSounds, hasClickActions, hasLight, hasLimitedPlacing, isBlastResistant, runClickActions
-
Methods inherited from class com.nexomc.nexo.mechanics.Mechanic
getFactory, getItemID, getItemModifiers, getSection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
StringBlockMechanic
StringBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
-
Method Detail
-
isPlaceableOnWater
final Boolean isPlaceableOnWater()
-
getBlockData
Tripwire getBlockData()
-
createBlockData
Tripwire createBlockData()
-
sapling
final SaplingMechanic sapling()
-
hasRandomPlace
final Boolean hasRandomPlace()
-
randomPlace
final List<String> randomPlace()
-
-
-
-