Package com.nexomc.nexo.mechanics.light
Class LightMechanic
-
- All Implemented Interfaces:
public final class LightMechanic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LightMechanic.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ItemBuilder
toggledModel
private final ItemBuilder
toggledItemModel
private final Boolean
isEmpty
private final List<LightBlock>
lightBlocks
private final Boolean
toggleable
public final static LightMechanic.Companion
Companion
-
Constructor Summary
Constructors Constructor Description LightMechanic(ConfigurationSection section)
LightMechanic(List<LightBlock> lightBlocks, Boolean toggleable, String _toggledModel, Key _toggledItemModel)
-
Method Summary
Modifier and Type Method Description final ItemBuilder
getToggledModel()
final ItemBuilder
getToggledItemModel()
final Boolean
isEmpty()
final List<LightBlock>
getLightBlocks()
final Boolean
getToggleable()
final List<Location>
lightBlockLocations(Location center, Float rotation)
final Unit
refreshLights(ItemDisplay baseEntity, FurnitureMechanic mechanic)
-
-
Constructor Detail
-
LightMechanic
LightMechanic(ConfigurationSection section)
-
LightMechanic
LightMechanic(List<LightBlock> lightBlocks, Boolean toggleable, String _toggledModel, Key _toggledItemModel)
-
-
Method Detail
-
getToggledModel
final ItemBuilder getToggledModel()
-
getToggledItemModel
final ItemBuilder getToggledItemModel()
-
getLightBlocks
final List<LightBlock> getLightBlocks()
-
getToggleable
final Boolean getToggleable()
-
lightBlockLocations
final List<Location> lightBlockLocations(Location center, Float rotation)
-
refreshLights
final Unit refreshLights(ItemDisplay baseEntity, FurnitureMechanic mechanic)
-
-
-
-