2025-11-24 22:52:51 +03:00

24 lines
785 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.telemetry;
import java.util.function.Consumer;
import net.minecraft.client.telemetry.TelemetryEventType;
import net.minecraft.client.telemetry.TelemetryPropertyMap;
@FunctionalInterface
public interface TelemetryEventSender {
public static final TelemetryEventSender DISABLED = (type, buildFunction) -> {};
default public TelemetryEventSender decorate(Consumer<TelemetryPropertyMap.Builder> decorator) {
return (type, buildFunction) -> this.send(type, properties -> {
buildFunction.accept(properties);
decorator.accept((TelemetryPropertyMap.Builder)properties);
});
}
public void send(TelemetryEventType var1, Consumer<TelemetryPropertyMap.Builder> var2);
}