mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 19:43:07 +00:00
Added MarkovNameGenerator, Added Disable Body Part Feature
Two New Features >> + Added Markov Name Generate + Corrected Hide Body Parts
This commit is contained in:
1 parent
f155ef2481
commit
3a36be0ae4
47 files changed
+14517
-93
No files matched your search
@@ -0,0 +1,40 @@
|
||||
package nikedemos.markovnames.generators;
|
||||
|
||||
import nikedemos.markovnames.MarkovDictionary;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
/* This implementation is made specifically for
|
||||
* CustomNPCs, one of the best Minecraft mods ever...
|
||||
* I'm a huge fan and would recommend it to anyone.
|
||||
* Check it out if you haven't yet, at
|
||||
* http://www.kodevelopment.nl/minecraft/category/customnpcs/
|
||||
* Minecraft 1.12.2 Java Edition + Forge required.
|
||||
* Also, you have to like cats, it's in CNPCs EULA, I'm quite sure
|
||||
*/
|
||||
|
||||
public class MarkovCustomNPCsClassic extends MarkovGenerator {
|
||||
|
||||
public MarkovCustomNPCsClassic(int seqlen, Random rng)
|
||||
{
|
||||
this.rng = rng;
|
||||
this.markov = new MarkovDictionary("customnpcs_classic.txt",seqlen,rng);
|
||||
}
|
||||
|
||||
public MarkovCustomNPCsClassic(int seqlen)
|
||||
{
|
||||
this(seqlen,new Random());
|
||||
|
||||
}
|
||||
|
||||
public MarkovCustomNPCsClassic()
|
||||
{
|
||||
this(3, new Random());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String fetch(int gender)
|
||||
{
|
||||
return markov.generateWord();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user