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

Method setSize

src/main/java/net/minecraft/entity/Entity.java:356–370  ·  view source on GitHub ↗

Sets the width and height of the entity. Args: width, height

(float width, float height)

Source from the content-addressed store, hash-verified

354 * Sets the width and height of the entity. Args: width, height
355 */
356 protected void setSize(float width, float height)
357 {
358 if (width != this.width || height != this.height)
359 {
360 float f = this.width;
361 this.width = width;
362 this.height = height;
363 this.setEntityBoundingBox(new AxisAlignedBB(this.getEntityBoundingBox().minX, this.getEntityBoundingBox().minY, this.getEntityBoundingBox().minZ, this.getEntityBoundingBox().minX + (double)this.width, this.getEntityBoundingBox().minY + (double)this.height, this.getEntityBoundingBox().minZ + (double)this.width));
364
365 if (this.width > f && !this.firstUpdate && !this.worldObj.isRemote)
366 {
367 this.moveEntity(f - this.width, 0.0D, f - this.width);
368 }
369 }
370 }
371
372 /**
373 * Sets the rotation of the entity. Args: yaw, pitch (both in degrees)

Callers 11

EntityBubbleFXMethod · 0.45
EntityRainFXMethod · 0.45
EntityAuraFXMethod · 0.45
EntitySuspendFXMethod · 0.45
EntityDropParticleFXMethod · 0.45
EntityFishWakeFXMethod · 0.45
onUpdateMethod · 0.45
EntityFXMethod · 0.45
func_179788_aMethod · 0.45
EntityHangingMethod · 0.45

Calls 3

setEntityBoundingBoxMethod · 0.95
getEntityBoundingBoxMethod · 0.95
moveEntityMethod · 0.95

Tested by

no test coverage detected