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

Method setRotation

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

Sets the rotation of the entity. Args: yaw, pitch (both in degrees)

(float yaw, float pitch)

Source from the content-addressed store, hash-verified

373 * Sets the rotation of the entity. Args: yaw, pitch (both in degrees)
374 */
375 protected void setRotation(float yaw, float pitch)
376 {
377 this.rotationYaw = yaw % 360.0F;
378 this.rotationPitch = pitch % 360.0F;
379 }
380
381 /**
382 * Sets the x,y,z of the entity from the given parameters. Also seems to set up a bounding box.

Callers 11

readFromNBTMethod · 0.95
onLivingUpdateMethod · 0.80
onLivingUpdateMethod · 0.80
onUpdateMethod · 0.80
onUpdateMethod · 0.80
onUpdateMethod · 0.80
onLivingUpdateMethod · 0.80
moveEntityWithHeadingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected