MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / addEntityCrashInfo

Method addEntityCrashInfo

src/main/java/net/minecraft/entity/Entity.java:2596–2630  ·  view source on GitHub ↗
(CrashReportCategory category)

Source from the content-addressed store, hash-verified

2594 }
2595
2596 public void addEntityCrashInfo(CrashReportCategory category)
2597 {
2598 category.addCrashSectionCallable("Entity Type", new Callable<String>()
2599 {
2600 public String call() throws Exception
2601 {
2602 return EntityList.getEntityString(Entity.this) + " (" + Entity.this.getClass().getCanonicalName() + ")";
2603 }
2604 });
2605 category.addCrashSection("Entity ID", this.entityId);
2606 category.addCrashSectionCallable("Entity Name", new Callable<String>()
2607 {
2608 public String call() throws Exception
2609 {
2610 return Entity.this.getCommandSenderName();
2611 }
2612 });
2613 category.addCrashSection("Entity\'s Exact location", String.format("%.2f, %.2f, %.2f", new Object[] {this.posX, this.posY, this.posZ}));
2614 category.addCrashSection("Entity\'s Block location", CrashReportCategory.getCoordinateInfo(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)));
2615 category.addCrashSection("Entity\'s Momentum", String.format("%.2f, %.2f, %.2f", new Object[] {this.motionX, this.motionY, this.motionZ}));
2616 category.addCrashSectionCallable("Entity\'s Rider", new Callable<String>()
2617 {
2618 public String call() throws Exception
2619 {
2620 return Entity.this.riddenByEntity.toString();
2621 }
2622 });
2623 category.addCrashSectionCallable("Entity\'s Vehicle", new Callable<String>()
2624 {
2625 public String call() throws Exception
2626 {
2627 return Entity.this.ridingEntity.toString();
2628 }
2629 });
2630 }
2631
2632 /**
2633 * Return whether this entity should be rendered as on fire.

Callers 6

updateEntitiesMethod · 0.95
moveEntityMethod · 0.95
writeToNBTMethod · 0.95
readFromNBTMethod · 0.95
doRenderEntityMethod · 0.45
addEntityToTrackerMethod · 0.45

Calls 5

getCoordinateInfoMethod · 0.95
floor_doubleMethod · 0.95
addCrashSectionMethod · 0.80
formatMethod · 0.65

Tested by

no test coverage detected