(World worldIn)
| 271 | } |
| 272 | |
| 273 | public Entity(World worldIn) |
| 274 | { |
| 275 | this.entityId = nextEntityID++; |
| 276 | this.renderDistanceWeight = 1.0D; |
| 277 | this.boundingBox = ZERO_AABB; |
| 278 | this.width = 0.6F; |
| 279 | this.height = 1.8F; |
| 280 | this.nextStepDistance = 1; |
| 281 | this.rand = new Random(); |
| 282 | this.fireResistance = 1; |
| 283 | this.firstUpdate = true; |
| 284 | this.entityUniqueID = MathHelper.getRandomUuid(this.rand); |
| 285 | this.cmdResultStats = new CommandResultStats(); |
| 286 | this.worldObj = worldIn; |
| 287 | this.setPosition(0.0D, 0.0D, 0.0D); |
| 288 | |
| 289 | if (worldIn != null) |
| 290 | { |
| 291 | this.dimension = worldIn.provider.getDimensionId(); |
| 292 | } |
| 293 | |
| 294 | this.dataWatcher = new DataWatcher(this); |
| 295 | this.dataWatcher.addObject(0, (byte) 0); |
| 296 | this.dataWatcher.addObject(1, (short) 300); |
| 297 | this.dataWatcher.addObject(3, (byte) 0); |
| 298 | this.dataWatcher.addObject(2, ""); |
| 299 | this.dataWatcher.addObject(4, (byte) 0); |
| 300 | this.entityInit(); |
| 301 | } |
| 302 | |
| 303 | protected abstract void entityInit(); |
| 304 |
nothing calls this directly
no test coverage detected