Package com.khorn.terraincontrol.customobjects

Examples of com.khorn.terraincontrol.customobjects.CustomObjectCoordinate


        {
            TerrainControl.log(LogMarker.TRACE, "  {} trying to spawn! #{}", (Object) branch.getCustomObject().getName(), branch.getChance());
            if (branch.getChance() >= randomChance)
            {
                TerrainControl.log(LogMarker.TRACE, "  Successful Spawn");
                return new CustomObjectCoordinate(branch.getCustomObject(), branch.getRotation(), x + this.x, y + this.y, z + this.z);
            }
        }
        TerrainControl.log(LogMarker.TRACE, "  No Spawn");
        return null;
    }
View Full Code Here


            double randomChance = random.nextDouble() * (totalChance != -1 ? totalChance : 100);
            TerrainControl.log(LogMarker.TRACE, "  Needed: {} Obtained: {}", branch.getChance(), randomChance);
            if (randomChance < branch.getChance())
            {
                TerrainControl.log(LogMarker.TRACE, "  Successful Spawn");
                return new CustomObjectCoordinate(branch.getCustomObject(), branch.getRotation(), x + this.x, y + this.y, z + this.z);
            }
        }
        TerrainControl.log(LogMarker.TRACE, "  No Spawn");
        return null;
    }
View Full Code Here

TOP

Related Classes of com.khorn.terraincontrol.customobjects.CustomObjectCoordinate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.