public class SpawnActionItem extends SpawnAction<net.minecraft.entity.item.ItemEntity>
SpawnAction
for item entities.Modifier and Type | Field and Description |
---|---|
net.minecraft.item.ItemStack |
stack |
entity, spawnInfo, spawnLocation
Constructor and Description |
---|
SpawnActionItem(SpawnInfoItem spawnInfo,
SpawnLocation spawnLocation) |
Modifier and Type | Method and Description |
---|---|
protected net.minecraft.entity.item.ItemEntity |
createEntity()
Creates the entity and returns the result.
|
applyLocationMutations, doSpawn, getOrCreateEntity, setEntity
public SpawnActionItem(SpawnInfoItem spawnInfo, SpawnLocation spawnLocation)
protected net.minecraft.entity.item.ItemEntity createEntity()
SpawnAction
createEntity
in class SpawnAction<net.minecraft.entity.item.ItemEntity>