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