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
|
getId
public SimpleDetectionLogic()
public SimpleDetectionLogic(java.lang.String id)
public boolean shouldReplaceSpawn(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
SpawnDetectionLogic
event
- The spawn eventpublic void read(com.google.gson.Gson context, com.google.gson.JsonElement element)
SpawnDetectionLogic
context
- The gsonelement
- The json element of the file