@@ -39,7 +39,9 @@ type Viewer interface {
3939 ViewChunk (pos ChunkPos , dim Dimension , blockEntities map [cube.Pos ]Block , c * chunk.Chunk )
4040 // ViewTime views the time of the world. It is called every time the time is changed or otherwise every
4141 // second.
42- ViewTime (t int , doDayLightCycle bool )
42+ ViewTime (t int )
43+ // ViewTimeCycle controls the automatic time-of-day cycle (day and night) in the world for this viewer.
44+ ViewTimeCycle (doDayLightCycle bool )
4345 // ViewEntityItems views the items currently held by an Entity that is able to equip items.
4446 ViewEntityItems (e Entity )
4547 // ViewEntityArmour views the items currently equipped as armour by the Entity.
@@ -87,7 +89,8 @@ func (NopViewer) ViewEntityMovement(Entity, mgl64.Vec3, cube.Rotation, bool)
8789func (NopViewer ) ViewEntityVelocity (Entity , mgl64.Vec3 ) {}
8890func (NopViewer ) ViewEntityTeleport (Entity , mgl64.Vec3 ) {}
8991func (NopViewer ) ViewChunk (ChunkPos , Dimension , map [cube .Pos ]Block , * chunk.Chunk ) {}
90- func (NopViewer ) ViewTime (int , bool ) {}
92+ func (NopViewer ) ViewTime (int ) {}
93+ func (NopViewer ) ViewTimeCycle (bool ) {}
9194func (NopViewer ) ViewEntityItems (Entity ) {}
9295func (NopViewer ) ViewEntityArmour (Entity ) {}
9396func (NopViewer ) ViewEntityAction (Entity , EntityAction ) {}
0 commit comments