public class SpawnReplacement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SpawnDetectionLogic |
detection |
protected boolean |
enabled |
protected SpawnReplacementLogic |
replacement |
Constructor and Description |
---|
SpawnReplacement(boolean enabled,
SpawnDetectionLogic detection,
SpawnReplacementLogic replacement)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
void |
replace(net.minecraftforge.event.entity.EntityJoinWorldEvent event)
Handles replacing the entity
|
protected final boolean enabled
protected final SpawnDetectionLogic detection
protected final SpawnReplacementLogic replacement
public SpawnReplacement(boolean enabled, SpawnDetectionLogic detection, SpawnReplacementLogic replacement)
enabled
- If this replacement is enableddetection
- The logic for detectionreplacement
- The logic for replacing