NaturesAura/src/main/java/de/ellpeck/naturesaura/reg/ITESRProvider.java

20 lines
735 B
Java
Raw Normal View History

package de.ellpeck.naturesaura.reg;
2021-12-04 15:40:09 +01:00
import net.minecraft.client.renderer.blockentity.BlockEntityRenderDispatcher;
import net.minecraft.client.renderer.blockentity.BlockEntityRenderer;
import net.minecraft.util.Tuple;
2021-12-04 15:40:09 +01:00
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;
2019-10-20 22:30:49 +02:00
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
2020-01-28 18:08:56 +01:00
import java.util.function.Function;
import java.util.function.Supplier;
2020-01-28 18:08:56 +01:00
2021-12-04 15:40:09 +01:00
public interface ITESRProvider<T extends BlockEntity> {
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
2021-12-04 15:40:09 +01:00
Tuple<BlockEntityType<T>, Supplier<Function<? super BlockEntityRenderDispatcher, ? extends BlockEntityRenderer<? super T>>>> getTESR();
}