Interface SpawnReplacementLogic
- All Known Implementing Classes:
BeeReplacementLogic,NoReplacementLogic,SimpleReplacementLogic,VillagerReplacementLogic
public interface SpawnReplacementLogic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnReplacementLogic> -
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
-
-
Method Details
-
codec
com.mojang.serialization.MapCodec<? extends SpawnReplacementLogic> codec()Gets the codec for this replacement logic- Returns:
- The codec
-
replaceSpawn
void replaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event) Handles replacing the spawn- Parameters:
event- The spawn event
-