mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
21 lines
434 B
Java
21 lines
434 B
Java
package com.hbm.blocks.machine;
|
|
|
|
import net.minecraft.entity.item.EntityMinecart;
|
|
import net.minecraft.world.World;
|
|
|
|
public class RailBooster extends RailGeneric {
|
|
|
|
public RailBooster() {
|
|
super();
|
|
this.setMaxSpeed(1.0F);
|
|
this.setFlexible(false);
|
|
}
|
|
|
|
@Override
|
|
public void onMinecartPass(World world, EntityMinecart cart, int y, int x, int z) {
|
|
cart.motionX *= 1.15F;
|
|
cart.motionY *= 1.15F;
|
|
cart.motionZ *= 1.15F;
|
|
}
|
|
}
|