Skip to content

Commit 2747d7f

Browse files
authored
Update PointLight: add toString method
1 parent ed3f331 commit 2747d7f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

jme3-core/src/main/java/com/jme3/light/PointLight.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2012, 2015-2016, 2018 jMonkeyEngine
2+
* Copyright (c) 2009-2025 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -247,4 +247,15 @@ public PointLight clone() {
247247
p.position = position.clone();
248248
return p;
249249
}
250+
251+
@Override
252+
public String toString() {
253+
return getClass().getSimpleName()
254+
+ "[name=" + name
255+
+ ", position=" + position
256+
+ ", radius=" + radius
257+
+ ", color=" + color
258+
+ ", enabled=" + enabled
259+
+ "]";
260+
}
250261
}

0 commit comments

Comments
 (0)