Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ protected void removeSpatialData(Spatial spat) {
* @return a new control (not null)
*/
@Override
public Object jmeClone() {
public BetterCharacterControl jmeClone() {
BetterCharacterControl control = new BetterCharacterControl(radius, height, mass);
control.setJumpForce(jumpForce);
control.spatial = this.spatial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public Control cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public CharacterControl jmeClone() {
CharacterControl control = new CharacterControl(collisionShape, stepHeight);
control.setCcdMotionThreshold(getCcdMotionThreshold());
control.setCcdSweptSphereRadius(getCcdSweptSphereRadius());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Control cloneForSpatial(Spatial spatial) {
* @return a new control (not null)
*/
@Override
public Object jmeClone() {
public GhostControl jmeClone() {
GhostControl control = new GhostControl(collisionShape);
control.setCcdMotionThreshold(getCcdMotionThreshold());
control.setCcdSweptSphereRadius(getCcdSweptSphereRadius());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ public void render(RenderManager rm, ViewPort vp) {
* @return a new control (not null)
*/
@Override
public Object jmeClone() {
public KinematicRagdollControl jmeClone() {
KinematicRagdollControl control = new KinematicRagdollControl(preset, weightThreshold);
control.setMode(mode);
control.setRootMass(rootMass);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public Control cloneForSpatial(Spatial spatial) {
* @return a new control (not null)
*/
@Override
public Object jmeClone() {
public RigidBodyControl jmeClone() {
RigidBodyControl control = new RigidBodyControl(collisionShape, mass);
control.setAngularFactor(getAngularFactor());
control.setAngularSleepingThreshold(getAngularSleepingThreshold());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public Control cloneForSpatial(Spatial spatial) {
* @return a new control (not null)
*/
@Override
public Object jmeClone() {
public VehicleControl jmeClone() {
VehicleControl control = new VehicleControl(collisionShape, mass);
control.setAngularFactor(getAngularFactor());
control.setAngularSleepingThreshold(getAngularSleepingThreshold());
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/anim/AnimClip.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public AnimTrack[] getTracks() {
* @return a new instance
*/
@Override
public Object jmeClone() {
public AnimClip jmeClone() {
try {
return super.clone();
return (AnimClip) super.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException("Error cloning", e);
}
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/anim/AnimComposer.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public void setLayerManager(String layerName, Object manager) {
* @return a new instance
*/
@Override
public Object jmeClone() {
public AnimComposer jmeClone() {
try {
AnimComposer clone = (AnimComposer) super.clone();
return clone;
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/anim/AnimLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public void cloneFields(Cloner cloner, Object original) {
}

@Override
public Object jmeClone() {
public AnimLayer jmeClone() {
try {
AnimLayer clone = (AnimLayer) super.clone();
return clone;
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/anim/Armature.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public int getJointCount() {
}

@Override
public Object jmeClone() {
public Armature jmeClone() {
try {
Armature clone = (Armature) super.clone();
return clone;
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/anim/Joint.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public void setId(int id) {
* @return a new instance
*/
@Override
public Object jmeClone() {
public Joint jmeClone() {
try {
Joint clone = (Joint) super.clone();
return clone;
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/anim/MorphTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void read(JmeImporter im) throws IOException {
}

@Override
public Object jmeClone() {
public MorphTrack jmeClone() {
try {
MorphTrack clone = (MorphTrack) super.clone();
return clone;
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/anim/SkinningControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ void resetToBind() {
}

@Override
public Object jmeClone() {
return super.jmeClone();
public SkinningControl jmeClone() {
return (SkinningControl) super.jmeClone();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public AnimControl() {
}

@Override
public Object jmeClone() {
public AnimControl jmeClone() {
AnimControl clone = (AnimControl) super.jmeClone();
clone.channels = new ArrayList<AnimChannel>();
clone.listeners = new ArrayList<AnimEventListener>();
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/animation/Animation.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ public Animation cloneForSpatial(Spatial spat) {
}

@Override
public Object jmeClone() {
public Animation jmeClone() {
try {
return super.clone();
return (Animation) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException("Error cloning", e);
}
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/animation/AudioTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ public Track cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public AudioTrack jmeClone() {
try {
return super.clone();
return (AudioTrack) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException("Error cloning", e);
}
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/animation/Bone.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected Bone() {
}

@Override
public Object jmeClone() {
public Bone jmeClone() {
try {
Bone clone = (Bone)super.clone();
return clone;
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/animation/CompactArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ public CompactArray clone() throws CloneNotSupportedException {
* @return a new array
*/
@Override
public Object jmeClone() {
public CompactArray jmeClone() {
try {
return super.clone();
return (CompactArray) super.clone();
} catch (CloneNotSupportedException exception) {
throw new RuntimeException("Can't clone array", exception);
}
Expand Down
6 changes: 3 additions & 3 deletions jme3-core/src/main/java/com/jme3/animation/EffectTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected void controlUpdate(float tpf) {
}

@Override
public Object jmeClone() {
public KillParticleControl jmeClone() {
KillParticleControl c = new KillParticleControl();
//this control should be removed as it shouldn't have been persisted in the first place
//In the quest to find the less hackish solution to achieve this,
Expand Down Expand Up @@ -285,9 +285,9 @@ public Track cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public EffectTrack jmeClone() {
try {
return super.clone();
return (EffectTrack) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException("Error cloning", e);
}
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/animation/Skeleton.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected Skeleton() {
}

@Override
public Object jmeClone() {
public Skeleton jmeClone() {
try {
Skeleton clone = (Skeleton)super.clone();
return clone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ void resetToBind() {
}

@Override
public Object jmeClone() {
return super.jmeClone();
public SkeletonControl jmeClone() {
return (SkeletonControl) super.jmeClone();
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/animation/TrackInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public void addTrack(Track track) {
}

@Override
public Object jmeClone() {
public TrackInfo jmeClone() {
try {
return super.clone();
return (TrackInfo) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException("Error cloning", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public Control cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public MotionEvent jmeClone() {
MotionEvent control = new MotionEvent();
control.path = path;
control.playState = playState;
Expand Down
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public Control cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public ParticleEmitterControl jmeClone() {
try {
return super.clone();
return (ParticleEmitterControl) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException("Error cloning", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ public DefaultParticleInfluencer clone() {
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public Object jmeClone() {
public DefaultParticleInfluencer jmeClone() {
try {
return super.clone();
return (DefaultParticleInfluencer) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public EmptyParticleInfluencer clone() {
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public Object jmeClone() {
public EmptyParticleInfluencer jmeClone() {
try {
return super.clone();
return (EmptyParticleInfluencer) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public EmitterShape deepClone() {
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public Object jmeClone() {
public EmitterBoxShape jmeClone() {
try {
return super.clone();
return (EmitterBoxShape) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ public EmitterShape deepClone() {
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public Object jmeClone() {
public EmitterMeshVertexShape jmeClone() {
try {
return super.clone();
return (EmitterMeshVertexShape) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public EmitterShape deepClone() {
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public Object jmeClone() {
public EmitterPointShape jmeClone() {
try {
return super.clone();
return (EmitterPointShape) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public EmitterShape deepClone() {
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public Object jmeClone() {
public EmitterSphereShape jmeClone() {
try {
return super.clone();
return (EmitterSphereShape) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public Control cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public ChaseCamera jmeClone() {
ChaseCamera cc = new ChaseCamera(cam, inputManager);
cc.target = target;
cc.setMaxDistance(getMaxDistance());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ public Control cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public AbstractControl jmeClone() {
try {
return super.clone();
return (AbstractControl) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException( "Can't clone control for spatial", e );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void setSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public LodControl jmeClone() {
LodControl clone = (LodControl)super.jmeClone();
clone.lastDistance = 0;
clone.lastLevel = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected void controlRender(RenderManager rm, ViewPort vp) {
}

@Override
public Object jmeClone() {
public UpdateControl jmeClone() {
UpdateControl clone = (UpdateControl)super.jmeClone();
clone.taskQueue = new ConcurrentLinkedQueue<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public InstanceTypeKey clone() {
}

@Override
public Object jmeClone() {
public InstanceTypeKey jmeClone() {
try {
return super.clone();
return (InstanceTypeKey) super.clone();
} catch( CloneNotSupportedException e ) {
throw new AssertionError();
}
Expand Down Expand Up @@ -138,9 +138,9 @@ public Control cloneForSpatial(Spatial spatial) {
}

@Override
public Object jmeClone() {
public InstancedNodeControl jmeClone() {
try {
return super.clone();
return (InstancedNodeControl) super.clone();
} catch( CloneNotSupportedException e ) {
throw new RuntimeException("Error cloning control", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,9 @@ public boolean isRenderBackFacesShadows() {
}

@Override
public Object jmeClone() {
public AbstractShadowRenderer jmeClone() {
try {
return super.clone();
return (AbstractShadowRenderer) super.clone();
} catch (final CloneNotSupportedException e) {
throw new RuntimeException(e);
}
Expand Down
Loading