i want to make it where i can do get the location and update it to the player but I'm getting errors
void Weapons() { Pistols(P_1911.class); } void Pistols(Class x) { if(isTouching(x)) { getWorld().getObjects(x).get(0).setLocation(getX(),getY()); } }