- Aura Pylon: Models + stuff init

This commit is contained in:
HellFirePvP committed 2015-11-13 00:59:15 +01:00
1 parent be6a56b8d8
commit 6b0d70b10e
15 files changed
+738 -16

No files matched your search

@@ -0,0 +1,24 @@
package makeo.gadomancy.common.utils;
import net.minecraft.entity.item.EntityItem;
import java.util.Random;
/**
* This class is part of the Gadomancy Mod
* Gadomancy is Open Source and distributed under the
* GNU LESSER GENERAL PUBLIC LICENSE
* for more read the LICENSE file
* <p/>
* Created by HellFirePvP @ 12.11.2015 23:13
*/
public class ItemUtils {
public static void applyRandomDropOffset(EntityItem item, Random rand) {
double xs = rand.nextFloat() * 0.7F - 0.35D;
double ys = rand.nextFloat() * 0.7F - 0.35D;
double zs = rand.nextFloat() * 0.7F - 0.35D;
item.setVelocity(xs, ys, zs);
}
}