Class SpawnReplacement
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.replacement.SpawnReplacement
Class containing information for spawn replacements
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SpawnDetectionLogic
protected final boolean
protected final SpawnReplacementLogic
-
Constructor Summary
ConstructorDescriptionSpawnReplacement
(boolean enabled, SpawnDetectionLogic detection, SpawnReplacementLogic replacement) Basic constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
replace
(net.minecraftforge.event.entity.EntityJoinLevelEvent event) Handles replacing the entity
-
Field Details
-
enabled
protected final boolean enabled -
detection
-
replacement
-
-
Constructor Details
-
SpawnReplacement
public SpawnReplacement(boolean enabled, SpawnDetectionLogic detection, SpawnReplacementLogic replacement) Basic constructor- Parameters:
enabled
- If this replacement is enableddetection
- The logic for detectionreplacement
- The logic for replacing
-
-
Method Details
-
replace
public void replace(net.minecraftforge.event.entity.EntityJoinLevelEvent event) Handles replacing the entity- Parameters:
event
- The spawn event
-