fix(renderer): rename getControlInterface to getControlClass for consistency

This commit is contained in:
extio-de
2026-01-04 14:14:21 +01:00
parent 54f457fb67
commit af82b8dc9d
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import de.extio.game_engine.renderer.g2d.control.impl.G2DBaseControlImpl;
public interface CustomControlConfiguration<T extends G2DBaseControlImpl> {
Class<T> getControlInterface();
Class<T> getControlClass();
T createControl();

View File

@@ -246,7 +246,7 @@ public class G2DDrawControl extends G2DAbstractRenderingBo implements ControlRen
else {
if (this.customControlConfigurations != null) {
for (final var customControlConfiguration : this.customControlConfigurations) {
if (customControlConfiguration.getControlInterface().equals(this.clazz)) {
if (customControlConfiguration.getControlClass().equals(this.clazz)) {
control = customControlConfiguration.createControl();
break;
}
@@ -341,7 +341,7 @@ public class G2DDrawControl extends G2DAbstractRenderingBo implements ControlRen
else {
if (this.customControlConfigurations != null) {
for (final var customControlConfiguration : this.customControlConfigurations) {
if (customControlConfiguration.getControlInterface().equals(this.clazz)) {
if (customControlConfiguration.getControlClass().equals(this.clazz)) {
((CustomControlConfiguration) customControlConfiguration).setCustomData(control, this.customData);
break;
}