Class VillagerReplacementLogic
java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.logic.VillagerReplacementLogic
- All Implemented Interfaces:
SpawnReplacementLogic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<VillagerReplacementLogic> protected net.minecraft.resources.ResourceLocation
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VillagerReplacementLogic
(net.minecraft.resources.ResourceLocation preset) -
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
-
preset
protected net.minecraft.resources.ResourceLocation preset
-
-
Constructor Details
-
VillagerReplacementLogic
protected VillagerReplacementLogic(net.minecraft.resources.ResourceLocation preset)
-
-
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
- Parameters:
event
- The spawn event
-
codec
Description copied from interface:SpawnReplacementLogic
Gets the codec for this replacement logic- Specified by:
codec
in interfaceSpawnReplacementLogic
- Returns:
- The codec
-