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

Method random

src/main/java/net/minecraft/util/EnumFacing.java:289–292  ·  view source on GitHub ↗

Choose a random Facing using the given Random

(Random rand)

Source from the content-addressed store, hash-verified

287 * Choose a random Facing using the given Random
288 */
289 public static EnumFacing random(Random rand)
290 {
291 return values()[rand.nextInt(values().length)];
292 }
293
294 public static EnumFacing getFacingFromVector(float p_176737_0_, float p_176737_1_, float p_176737_2_)
295 {

Callers 15

updateTickMethod · 0.95
randomDisplayTickMethod · 0.95
shouldExecuteMethod · 0.95
updateTorchFlickerMethod · 0.45
updateCompassMethod · 0.45
updateAnimationMethod · 0.45
EntityPortalFXMethod · 0.45
EntityBubbleFXMethod · 0.45
EntitySpellParticleFXMethod · 0.45
EntityFlameFXMethod · 0.45
EntityRainFXMethod · 0.45
onUpdateMethod · 0.45

Calls 2

valuesMethod · 0.80
nextIntMethod · 0.80

Tested by

no test coverage detected