Interface IExternalTickable
- Namespace
- Vintagestory.Common.Collectible.Block
- Assembly
- VintagestoryAPI.dll
public interface IExternalTickable
- Extension Methods
Properties
IsExternallyTicked
If true it will be ticked from another objeckt eg. BlockEntity. The own tick listener should be unregistered
bool IsExternallyTicked { get; protected set; }
Property Value
Methods
OnExternalTick(float)
Called by the external BlockEntity to perform ticking logic when the internal tick listener is disabled.
void OnExternalTick(float dt)
Parameters
dtfloat
RegisterServerTickListener()
Register the own tick listener Used if the external BlockEntity is destroyed, to reactivate the ticking. Will be called automatically by SetInternallyTicked
void RegisterServerTickListener()
SetExternallyTicked()
Sets this object as externally ticked, unregistering its own tick listener.
void SetExternallyTicked()
SetInternallyTicked()
Sets this object as internally ticked, registering its own tick listener again.
void SetInternallyTicked()
UnregisterTickListener()
Unregister the normal tick listener so the external entity can control ticking. Will be called automatically by SetExternallyTicked
void UnregisterTickListener()