-
Notifications
You must be signed in to change notification settings - Fork 754
/
GrindableHorse.java
38 lines (31 loc) · 1020 Bytes
/
GrindableHorse.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package tconstruct.plugins.minefactoryreloaded.harvestables;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityHorse;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import powercrystals.minefactoryreloaded.api.IFactoryGrindable;
import powercrystals.minefactoryreloaded.api.MobDrop;
import tconstruct.common.TContent;
public class GrindableHorse implements IFactoryGrindable
{
@Override
public Class<?> getGrindableEntity ()
{
return EntityHorse.class;
}
@Override
public List<MobDrop> grind (World world, EntityLivingBase entity, Random random)
{
List<MobDrop> drops = new ArrayList<MobDrop>();
drops.add(new MobDrop(10, new ItemStack(TContent.materials, random.nextInt(4) + 1, 36)));
return drops;
}
@Override
public boolean processEntity (EntityLivingBase entity)
{
return false;
}
}