assemblyline/src/main/java/assemblyline/common/machine/command/CommandDrop.java
2023-02-10 17:51:10 +01:00

31 lines
784 B
Java

package assemblyline.common.machine.command;
import assemblyline.common.machine.command.Command;
public class CommandDrop extends Command {
@Override
protected boolean doTask() {
super.doTask();
this.tileEntity.dropAll();
this.world.playSound(
(double) this.tileEntity.xCoord,
(double) this.tileEntity.yCoord,
(double) this.tileEntity.zCoord,
"random.pop",
0.2f,
((this.tileEntity.getWorldObj().rand.nextFloat()
- this.tileEntity.getWorldObj().rand.nextFloat())
* 0.7f
+ 1.0f)
* 1.0f,
true
);
return false;
}
@Override
public String toString() {
return "DROP";
}
}