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

Method Entity

src/main/java/net/minecraft/entity/Entity.java:273–301  ·  view source on GitHub ↗
(World worldIn)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

getRandomUuidMethod · 0.95
setPositionMethod · 0.95
entityInitMethod · 0.95
addObjectMethod · 0.80
getDimensionIdMethod · 0.45

Tested by

no test coverage detected