net.minecraft.entity.item.EntityMinecartEmpty Java Examples
The following examples show how to use
net.minecraft.entity.item.EntityMinecartEmpty.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommandSignals.java From Signals with GNU General Public License v3.0 | 6 votes |
private boolean debug(MinecraftServer server, ICommandSender sender, String[] args){ World overworld = server.getWorld(0); if(args.length < 2) { sender.sendMessage(new TextComponentString("Trains loaded: " + RailNetworkManager.getServerInstance().getState().getTrainStream().filter(x -> !((MCTrain)x).getCarts().isEmpty()).count())); return true; } else { int z = Integer.parseInt(args[1]); for(int i = 0; i < 10000; i++) { EntityMinecartEmpty cart = new EntityMinecartEmpty(overworld, i, 64, z); cart.forceSpawn = true; boolean success = overworld.spawnEntity(cart); if(i % 1000 == 0) { sender.sendMessage(new TextComponentString("Spawned " + i + " / 100.000")); } } return true; } }
Example #2
Source File: CraftMinecartRideable.java From Kettle with GNU General Public License v3.0 | 4 votes |
public CraftMinecartRideable(CraftServer server, EntityMinecartEmpty entity) { super(server, entity); }