Class NoteBlockMechanic
-
- All Implemented Interfaces:
public final class NoteBlockMechanic extends CustomBlockMechanic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
NoteBlockMechanic.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
instrument
private final DirectionalBlock
directional
private final NoteBlock
blockData
private final Boolean
isLog
private final Boolean
isDirectional
private final Breakable
breakable
private final BlockSounds
blockSounds
private final Boolean
isInteractable
private final CustomBlockType<?>
type
private final Integer
customVariation
private final Key
model
private final LightMechanic
light
private final LimitedPlacing
limitedPlacing
private final List<ClickAction>
clickActions
private final BlockLockerMechanic
blockLocker
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
public final static NoteBlockMechanic.Companion
Companion
-
Constructor Summary
Constructors Constructor Description NoteBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
Method Summary
Modifier and Type Method Description final String
getInstrument()
final DirectionalBlock
getDirectional()
NoteBlock
getBlockData()
final Boolean
isLog()
final Boolean
isDirectional()
Breakable
getBreakable()
BlockSounds
getBlockSounds()
final Boolean
isInteractable()
NoteBlock
createBlockData()
final Boolean
isStorage()
final StorageMechanic
storage()
final LogStripping
log()
final Boolean
isFalling()
final Boolean
canIgnite()
final Boolean
isBeaconBaseBlock()
Boolean
hasLight()
-
Methods inherited from class com.nexomc.nexo.mechanics.custom_block.CustomBlockMechanic
getBlockLocker, getClickActions, getCustomVariation, getImmovable, getLight, getLimitedPlacing, getModel, getType, hasBlockSounds, hasClickActions, 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
-
NoteBlockMechanic
NoteBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
-
Method Detail
-
getInstrument
final String getInstrument()
-
getDirectional
final DirectionalBlock getDirectional()
-
getBlockData
NoteBlock getBlockData()
-
isDirectional
final Boolean isDirectional()
-
getBreakable
Breakable getBreakable()
-
getBlockSounds
BlockSounds getBlockSounds()
-
isInteractable
final Boolean isInteractable()
-
createBlockData
NoteBlock createBlockData()
-
storage
final StorageMechanic storage()
-
log
final LogStripping log()
-
isBeaconBaseBlock
final Boolean isBeaconBaseBlock()
-
-
-
-