(CrashReportCategory category)
| 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. |
no test coverage detected