ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemFireworkBoxMinecart.java

31 lines
973 B
Java
Raw Normal View History

2016-05-16 22:52:27 +02:00
/*
* This file ("ItemFireworkBoxMinecart.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2016 Ellpeck Ellpeck
*/
2016-05-16 17:00:29 +02:00
package de.ellpeck.actuallyadditions.mod.items;
import de.ellpeck.actuallyadditions.mod.entity.EntityFireworkBoxMinecart;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityMinecart;
import net.minecraft.world.World;
public class ItemFireworkBoxMinecart extends ItemMinecartAA{
public ItemFireworkBoxMinecart(String name){
super(name);
}
@Override
public EntityMinecart createCart(World world, double x, double y, double z){
EntityMinecart entity = new EntityFireworkBoxMinecart(world);
entity.setPosition(x, y, z);
return entity;
}
}