Class SpawnReplacement
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.replacement.SpawnReplacement
Class containing information for spawn replacements
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SpawnDetectionLogicprotected final booleanprotected final SpawnReplacementLogic -
Constructor Summary
ConstructorsConstructorDescriptionSpawnReplacement(boolean enabled, SpawnDetectionLogic detection, SpawnReplacementLogic replacement) Basic constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidreplace(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
-