public class SimpleDetectionLogic extends AbstractDetectionLogic
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<net.minecraft.entity.EntityType<?>> |
types |
id| Constructor and Description |
|---|
SimpleDetectionLogic() |
SimpleDetectionLogic(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
read(com.google.gson.Gson context,
com.google.gson.JsonElement element)
Reads the data required from the datapack JSON
|
boolean |
shouldReplaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
Checks if the spawn should be replaced
|
getIdpublic SimpleDetectionLogic()
public SimpleDetectionLogic(java.lang.String id)
public boolean shouldReplaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
SpawnDetectionLogicevent - The spawn eventpublic void read(com.google.gson.Gson context,
com.google.gson.JsonElement element)
SpawnDetectionLogiccontext - The gsonelement - The json element of the file