PaleoCrafter

MathHelper naming suggestions

Apr 17th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. func_151241_e: calculateLogBaseTwoDeBruijn -> log2DeBruijn (not really satisfied with this)
  2. func_180182_a: getRandomUuid -> getRandomUUID (there already is another getRandomUUID, change this one to keep consistency)
  3. func_188208_f: getHash -> hash (more consistent with JDK methods like Objects.hash)
  4.  
  5. The following two could also use more descriptive names, but I don't quite get their purpose.
  6. From their bodies, I thought they'd just create a seed for a Random based on the position, but the usages use the returned value directly. Still, renaming them to something like 'getPositionSeed' might be better since they don't actually return a random position or a Random instance.
  7. func_180187_c: getCoordinateRandom
  8. func_180186_a: getPositionRandom
Add Comment
Please, Sign In to add comment