Class NoteBlockMechanic
-
- All Implemented Interfaces:
public final class NoteBlockMechanic extends CustomBlockMechanic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNoteBlockMechanic.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringinstrumentprivate final DirectionalBlockdirectionalprivate final NoteBlockblockDataprivate final BooleanisLogprivate final BooleanisDirectionalprivate final Breakablebreakableprivate final BlockSoundsblockSoundsprivate final CustomBlockType<?>typeprivate final Keymodelprivate final IntegercustomVariationprivate final LightMechaniclightprivate final LimitedPlacinglimitedPlacingprivate final List<ClickAction>clickActionsprivate final BlockLockerMechanicblockLockerprivate final BooleanisBlastResistantprivate final Booleanimmovableprivate final StringitemIDprivate final MechanicFactoryfactoryprivate final ConfigurationSectionsectionprivate final Array<out ItemModifier>itemModifierspublic final static NoteBlockMechanic.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description NoteBlockMechanic(NoteBlockMechanicFactory factory, ConfigurationSection section)
-
Method Summary
Modifier and Type Method Description final StringgetInstrument()final DirectionalBlockgetDirectional()NoteBlockgetBlockData()final BooleanisLog()final BooleanisDirectional()BreakablegetBreakable()BlockSoundsgetBlockSounds()NoteBlockcreateBlockData()StorageMechanicstorage()final LogStrippinglog()final BooleanisFalling()final BooleancanIgnite()final BooleanisBeaconBaseBlock()BooleanhasLight()final BooleanallowedSameVariation(NoteBlockMechanic oldMechanic)-
Methods inherited from class com.nexomc.nexo.mechanics.custom_block.CustomBlockMechanic
getBlockLocker, getClickActions, getCustomVariation, getImmovable, getLight, getLimitedPlacing, getModel, getType, hasBlockSounds, hasClickActions, hasLimitedPlacing, isBlastResistant, isInteractable, isStorage, 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(NoteBlockMechanicFactory 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()
-
createBlockData
NoteBlock createBlockData()
-
storage
StorageMechanic storage()
-
log
final LogStripping log()
-
isBeaconBaseBlock
final Boolean isBeaconBaseBlock()
-
allowedSameVariation
final Boolean allowedSameVariation(NoteBlockMechanic oldMechanic)
-
-
-
-