Class NoReplacementLogic
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.logic.NoReplacementLogic
- All Implemented Interfaces:
SpawnReplacementLogic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NoReplacementLogic> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends SpawnReplacementLogic> codec()Gets the codec for this replacement logicvoidreplaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event) Handles replacing the spawn
-
Field Details
-
CODEC
-
-
Constructor Details
-
NoReplacementLogic
public NoReplacementLogic()
-
-
Method Details
-
replaceSpawn
public void replaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event) Description copied from interface:SpawnReplacementLogicHandles replacing the spawn- Specified by:
replaceSpawnin interfaceSpawnReplacementLogic- Parameters:
event- The spawn event
-
codec
Description copied from interface:SpawnReplacementLogicGets the codec for this replacement logic- Specified by:
codecin interfaceSpawnReplacementLogic- Returns:
- The codec
-