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 classLightMechanic.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ItemBuildertoggledModelprivate final ItemBuildertoggledItemModelprivate final BooleanisEmptyprivate final List<LightBlock>lightBlocksprivate final Booleantoggleablepublic final static LightMechanic.CompanionCompanion
-
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 ItemBuildergetToggledModel()final ItemBuildergetToggledItemModel()final BooleanisEmpty()final List<LightBlock>getLightBlocks()final BooleangetToggleable()final List<Location>lightBlockLocations(Location center, Float rotation)final UnitrefreshLights(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)
-
-
-
-