Class SpawnActionItem
java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.SpawnAction<net.minecraft.world.entity.item.ItemEntity>
com.pixelmonmod.pixelmon.api.spawning.archetypes.entities.items.SpawnActionItem
SpawnAction
for item entities.-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.spawning.SpawnAction
entity, spawnInfo, spawnLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.entity.item.ItemEntity
Creates the entity and returns the result.Methods inherited from class com.pixelmonmod.pixelmon.api.spawning.SpawnAction
applyLocationMutations, doSpawn, getOrCreateEntity, setEntity
-
Field Details
-
stack
public net.minecraft.world.item.ItemStack stack
-
-
Constructor Details
-
SpawnActionItem
-
-
Method Details
-
createEntity
protected net.minecraft.world.entity.item.ItemEntity createEntity()Description copied from class:SpawnAction
Creates the entity and returns the result. Returning null if the spawn should fail is safe in default implementations.- Specified by:
createEntity
in classSpawnAction<net.minecraft.world.entity.item.ItemEntity>
-