aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/anthonyhilyard/iceberg/events/RenderTickEvents.java
blob: dc3a91a4f8d09601b51fb45f99a5eb1d44bdb30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.anthonyhilyard.iceberg.events;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

public class RenderTickEvents
{
	public RenderTickEvents() { }

	public static final Event<RenderTickEvents.Start> START = EventFactory.createArrayBacked(RenderTickEvents.Start.class,
		callbacks -> (timer) -> {
		for (RenderTickEvents.Start callback : callbacks)
		{
			callback.onStart(timer);
		}
	});

	@FunctionalInterface
	public interface Start
	{
		void onStart(float timer);
	}
}