2018-11-21 20:36:55 +01:00
|
|
|
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;
|
2018-11-21 20:36:55 +01:00
|
|
|
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;
|
2018-11-21 20:36:55 +01:00
|
|
|
|
2020-01-28 18:08:56 +01:00
|
|
|
import java.util.function.Function;
|
2020-01-28 20:36:08 +01:00
|
|
|
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> {
|
2018-11-21 20:36:55 +01:00
|
|
|
|
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();
|
2018-11-21 20:36:55 +01:00
|
|
|
|
|
|
|
}
|