But the method is in an Event and you can't put an Event in an Event...
Nvm I'm not explaining this correctly.
Type: Posts; User: DayzZombie
But the method is in an Event and you can't put an Event in an Event...
Nvm I'm not explaining this correctly.
I don't want the whole game to wait I just want a method to be delayed for one second, so the object can drop and then get it's location.
I created a tick class that ticks every second:
package com.dayz.testmod;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
public class...
Correction: I don't wan't the method to wait, I the method to be delayed. Sorry about that :/
It's actually a mod for Minecraft.
I want to to wait for an object to "drop". It takes about half a second for an Object to "Drop".
I want to tell my java method to wait one second while something else is happening. Why not use Thread.sleep(x)? For me it stops the whole program and does not let that some else happen. Why not use...
Yes that is the problem, and can you give me an example of the file append option? Thanks for the reply!
I want to create a simple console account application that allow's you to create accounts and the accounts will be save in a txt files. Code:
package main;
import static java.lang.System.out;
...