mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Minecart Rarity
This commit is contained in:
parent
7aa813f04e
commit
a21981bf01
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,7 @@ import net.minecraft.dispenser.IBehaviorDispenseItem;
|
|||
import net.minecraft.dispenser.IBlockSource;
|
||||
import net.minecraft.entity.item.EntityMinecart;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumActionResult;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
@ -82,6 +83,11 @@ public abstract class ItemMinecartAA extends ItemBase{
|
|||
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(this, MINECART_DISPENSER_BEHAVIOR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack stack){
|
||||
return EnumRarity.UNCOMMON;
|
||||
}
|
||||
|
||||
public abstract EntityMinecart createCart(World world, double x, double y, double z);
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue