Removed reliance of TickTracker on implementation detail to generate additional crash information.

This commit is contained in:
Sebastian Hartte
2020-06-30 18:34:36 +02:00
parent 17b919a171
commit d0acc9ccf1
3 changed files with 15 additions and 3 deletions
+11
View File
@@ -32,6 +32,7 @@ import javax.annotation.Nonnull;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.crash.CrashReportCategory;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
@@ -371,4 +372,14 @@ public interface IPart extends ICustomCableConnection {
*/
void getBoxes(final IPartCollisionHelper bch);
/**
* This will be used by the core to add information about this part to a crash
* report if it is attached to a host that caused a crash during tick
* processing.
*
* @param section The crash report section the information will be added to.
*/
default void addEntityCrashInfo(final CrashReportCategory section) {
}
}