1414import net .minecraft .world .level .block .state .BlockState ;
1515import net .minecraft .world .level .material .FluidState ;
1616import net .neoforged .neoforge .client .model .data .ModelData ;
17+ import org .jetbrains .annotations .ApiStatus .ScheduledForRemoval ;
1718import org .jetbrains .annotations .Nullable ;
1819
1920/**
2223 * Created by covers1624 on 8/09/2016.
2324 *
2425 * @see BlockRenderingRegistry
26+ * @deprecated Unfortunately, this has become a maintenance and compatability burden. Mods like Sodium
27+ * are in every single modpack, and we can't realistically tell people not to use it. It's possible
28+ * a Neo api may pop up that allows features similar to this API. But I'm not going to hold my breath.
29+ * If someone still requires the functionality that this system provides, they should implement mixins
30+ * themselves, or Sodium/Embeddium compatability.
2531 */
32+ @ Deprecated (forRemoval = true )
33+ @ ScheduledForRemoval (inVersion = "mc 1.21.2+" )
2634public interface ICCBlockRenderer {
2735
2836 //region Block
@@ -36,6 +44,7 @@ public interface ICCBlockRenderer {
3644 * @param renderType The {@link RenderType}, {@code null} for breaking.
3745 * @return If you wish to render the BlockState.
3846 */
47+ @ Deprecated
3948 boolean canHandleBlock (BlockAndTintGetter world , BlockPos pos , BlockState blockState , @ Nullable RenderType renderType );
4049
4150 /**
@@ -53,6 +62,7 @@ public interface ICCBlockRenderer {
5362 * @param data Any ModelData.
5463 * @param renderType The {@link RenderType}, {@code null} for breaking.
5564 */
65+ @ Deprecated
5666 void renderBlock (BlockState state , BlockPos pos , BlockAndTintGetter world , PoseStack mStack , VertexConsumer builder , RandomSource random , ModelData data , @ Nullable RenderType renderType );
5767
5868 /**
@@ -66,6 +76,7 @@ public interface ICCBlockRenderer {
6676 * @param builder The {@link VertexConsumer} to add quads to.
6777 * @param data Any ModelData.
6878 */
79+ @ Deprecated
6980 default void renderBreaking (BlockState state , BlockPos pos , BlockAndTintGetter world , PoseStack mStack , VertexConsumer builder , ModelData data ) {
7081 CCRenderState ccrs = CCRenderState .instance ();
7182 ccrs .overlay = OverlayTexture .NO_OVERLAY ;
@@ -85,6 +96,7 @@ default void renderBreaking(BlockState state, BlockPos pos, BlockAndTintGetter w
8596 * @param state The state.
8697 * @return If you wish to render this block.
8798 */
99+ @ Deprecated // No replacement. Use a mixin.
88100 default boolean canHandleEntity (BlockState state ) {
89101 return false ;
90102 }
@@ -101,6 +113,7 @@ default boolean canHandleEntity(BlockState state) {
101113 * @param data Any ModelData.
102114 * @param renderType The {@link RenderType} may be {@code null}.
103115 */
116+ @ Deprecated // No replacement. Use a mixin.
104117 default void renderEntity (BlockState state , PoseStack nStack , MultiBufferSource builder , int packedLight , int packedOverlay , ModelData data , @ Nullable RenderType renderType ) { }
105118 //endregion
106119
@@ -115,6 +128,7 @@ default void renderEntity(BlockState state, PoseStack nStack, MultiBufferSource
115128 * @param fluidState The {@link FluidState}.
116129 * @return If you wish to render the {@link FluidState}.
117130 */
131+ @ Deprecated // No replacement. Use a mixin.
118132 default boolean canHandleFluid (BlockAndTintGetter world , BlockPos pos , BlockState blockState , FluidState fluidState ) {
119133 return false ;
120134 }
@@ -131,6 +145,7 @@ default boolean canHandleFluid(BlockAndTintGetter world, BlockPos pos, BlockStat
131145 * @param blockState The {@link BlockState}
132146 * @param fluidState The {@link FluidState}
133147 */
148+ @ Deprecated // No replacement. Use a mixin.
134149 default void renderFluid (BlockPos pos , BlockAndTintGetter world , VertexConsumer builder , BlockState blockState , FluidState fluidState ) { }
135150 //endregion
136151}
0 commit comments