Class CustomBlockMechanic
-
- All Implemented Interfaces:
public abstract class CustomBlockMechanic extends Mechanic
-
-
Field Summary
Fields Modifier and Type Field Description private final CustomBlockType<?>typeprivate final IntegercustomVariationprivate final Keymodelprivate final BlockDatablockDataprivate final BlockSoundsblockSoundsprivate final LightMechaniclightprivate final LimitedPlacinglimitedPlacingprivate final List<ClickAction>clickActionsprivate final BlockLockerMechanicblockLockerprivate final Breakablebreakableprivate final BooleanisBlastResistantprivate final Booleanimmovableprivate final Array<out Function<ItemBuilder, ItemBuilder>>itemModifiersprivate final StringitemIDprivate final MechanicFactoryfactoryprivate final ConfigurationSectionsection
-
Constructor Summary
Constructors Constructor Description CustomBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
Method Summary
Modifier and Type Method Description final CustomBlockType<?>getType()final IntegergetCustomVariation()final KeygetModel()BlockDatagetBlockData()BlockSoundsgetBlockSounds()final LightMechanicgetLight()final LimitedPlacinggetLimitedPlacing()final List<ClickAction>getClickActions()final BlockLockerMechanicgetBlockLocker()BreakablegetBreakable()final BooleanisBlastResistant()final BooleangetImmovable()BlockDatacreateBlockData()BooleanhasLight()final BooleanhasLimitedPlacing()final BooleanhasBlockSounds()final BooleanhasClickActions()final UnitrunClickActions(Player player)-
-
Constructor Detail
-
CustomBlockMechanic
CustomBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
-
Method Detail
-
getType
final CustomBlockType<?> getType()
-
getCustomVariation
final Integer getCustomVariation()
-
getModel
final Key getModel()
-
getBlockData
BlockData getBlockData()
-
getBlockSounds
BlockSounds getBlockSounds()
-
getLight
final LightMechanic getLight()
-
getLimitedPlacing
final LimitedPlacing getLimitedPlacing()
-
getClickActions
final List<ClickAction> getClickActions()
-
getBlockLocker
final BlockLockerMechanic getBlockLocker()
-
getBreakable
Breakable getBreakable()
-
isBlastResistant
final Boolean isBlastResistant()
-
getImmovable
final Boolean getImmovable()
-
createBlockData
BlockData createBlockData()
-
hasLimitedPlacing
final Boolean hasLimitedPlacing()
-
hasBlockSounds
final Boolean hasBlockSounds()
-
hasClickActions
final Boolean hasClickActions()
-
runClickActions
final Unit runClickActions(Player player)
-
-
-
-