Class PhysicsManager
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.worldactions.world.phys.data.PhysicsManager
- All Implemented Interfaces:
Manager,ShutDownable,Startable,Toggleable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NotNull PhysObject object, int limit) @NotNull StringgetName()Returns name of manager, that will be displayed by request in the logs.booleanChecks whether manager was started successfully and it currently works.voidshutdown()Does tasks on shutdown.voidstart()Does tasks on start.
-
Constructor Details
-
PhysicsManager
public PhysicsManager()
-
-
Method Details
-
add
-
start
public void start()Description copied from interface:StartableDoes tasks on start. -
shutdown
public void shutdown()Description copied from interface:ShutDownableDoes tasks on shutdown.- Specified by:
shutdownin interfaceShutDownable
-
isWorking
public boolean isWorking()Description copied from interface:ToggleableChecks whether manager was started successfully and it currently works.- Specified by:
isWorkingin interfaceToggleable- Returns:
- true - started up, false - shut downed.
-
getName
Description copied from interface:ManagerReturns name of manager, that will be displayed by request in the logs.
-