Class CustomBlockMechanic
-
- All Implemented Interfaces:
public abstract class CustomBlockMechanic extends Mechanic
-
-
Field Summary
Fields Modifier and Type Field Description private final CustomBlockType<?>
type
private final Integer
customVariation
private final Key
model
private final BlockData
blockData
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 CustomBlockMechanic(MechanicFactory factory, ConfigurationSection section)
-
Method Summary
Modifier and Type Method Description final CustomBlockType<?>
getType()
final Integer
getCustomVariation()
final Key
getModel()
BlockData
getBlockData()
BlockSounds
getBlockSounds()
final LightMechanic
getLight()
final LimitedPlacing
getLimitedPlacing()
final List<ClickAction>
getClickActions()
final BlockLockerMechanic
getBlockLocker()
Breakable
getBreakable()
final Boolean
isBlastResistant()
final Boolean
getImmovable()
BlockData
createBlockData()
Boolean
hasLight()
final Boolean
hasLimitedPlacing()
final Boolean
hasBlockSounds()
final Boolean
hasClickActions()
final Unit
runClickActions(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)
-
-
-
-