TridentSDK/TridentSDK — pull request #13 by AgentTroll (2014-09-23 23:49:49+00:00)
Title: Created TridentFactory

TridentFactory created to provide factory creation of common objects. This reduces the verbosity of ```new Location(x, y, z)```. Instead, to create, say, locations, one would perform ```TridentFactory.createLocation(x, y, z)```. While this may be slightly longer, your IDE will be able to easily suggest the classes/methods, instead of mistaking the ```new``` keyword with another class, and have a reduced view of items to create after narrowing with TridentFactory. This is also a design consideration, as a static factory to produce OOP based instances similar to Google Guava looks much better, and can be chained without looking something like ```new Location(new WorldLoader(/* ... */), x, y, new ChunkLocation(x, z).getZ())```. It will look like ```TridentFactory.createLocation(TridentFactory.createWorld("foo"), x, y, TridentFactory.createChunkLoc(x, z).getZ());```

Therefore, I say that it is justified to add this class to the API.