@@ 244,30 244,30 @@ public class WorldUpdater {
/** listens to events during {@link #update(World, Update, Listener)}
* @author dermetfan
* @since 0.1.0 */
- public static interface Listener {
+ public interface Listener {
/** called by {@link #setListener(Listener)}
* @param updater the WorldUpdater this Listener is set on */
- public void setOn(WorldUpdater updater);
+ void setOn(WorldUpdater updater);
/** called by {@link #setListener(Listener)}
* @param updater the WorldUpdater this Listener is removed from */
- public void removedFrom(WorldUpdater updater);
+ void removedFrom(WorldUpdater updater);
/** called the the very beginning of {@link #update(World, Update, Listener)}
* @param world the World being updated
* @param update the Update being applied */
- public void preUpdate(World world, Update update);
+ void preUpdate(World world, Update update);
/** called at the very end of {@link #update(World, Update, Listener)}
* @param world the World that was updated
* @param update the Update that was applied */
- public void postUpdate(World world, Update update);
+ void postUpdate(World world, Update update);
/** called if {@link #index} does not contain the object for the given hash
* @param hash the hash not found in {@link #index}
* @param update the Update requiring the given hash */
- public void objectNotFound(int hash, Update update);
+ void objectNotFound(int hash, Update update);
/** Called if {@link #index} already contains an object for the hash given by the Creation.
* If false is returned or no Listener is set on the WorldUpdater, the Creation is skipped.
@@ 276,40 276,40 @@ public class WorldUpdater {
* @param object the object that already exists
* @param creation the Creation that causes the incident
* @return if the already existing object should be replaced */
- public boolean objectAlreadyExists(int hash, Object object, Creation creation);
+ boolean objectAlreadyExists(int hash, Object object, Creation creation);
/** @param body the created Body
* @param creation the BodyCreation the Body was created from */
- public void created(Body body, BodyCreation creation);
+ void created(Body body, BodyCreation creation);
/** @param fixture the created Fixture
* @param creation the FixtureCreation the Fixture was created from */
- public void created(Fixture fixture, FixtureCreation creation);
+ void created(Fixture fixture, FixtureCreation creation);
/** @param joint the created Joint
* @param creation the JointCreation the Joint was created from */
- public void created(Joint joint, JointCreation creation);
+ void created(Joint joint, JointCreation creation);
/** @param object the object that was changed
* @param change the Change applied the given Object */
- public <T> void changed(T object, Change<T> change);
+ <T> void changed(T object, Change<T> change);
/** @param body the destroyed Body
* @param destruction the Destruction because of which the Body was destroyed */
- public void destroyed(Body body, Destruction destruction);
+ void destroyed(Body body, Destruction destruction);
/** @param fixture the destroyed Fixture
* @param destruction the Destruction because of which the Fixture was destroyed */
- public void destroyed(Fixture fixture, Destruction destruction);
+ void destroyed(Fixture fixture, Destruction destruction);
/** @param joint the destroyed Joint
* @param destruction the Destruction because of which the Joint was destroyed */
- public void destroyed(Joint joint, Destruction destruction);
+ void destroyed(Joint joint, Destruction destruction);
/** Does nothing. Extend this if you want to override only certain methods.
* @author dermetfan
* @since 0.1.0 */
- public static class Adapter implements Listener {
+ class Adapter implements Listener {
@Override
public void setOn(WorldUpdater updater) {}