Skip to content

Commit

Permalink
🎨 Update package structure to use 'net' convention
Browse files Browse the repository at this point in the history
Replaced occurrences of 'info.itsthesky.disky' with 'net.itsthesky.disky' across various classes to align with the updated package naming convention. This standardizes the project structure and improves consistency.
  • Loading branch information
ItsTheSky committed Jan 18, 2025
1 parent 9f56551 commit 6590c09
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/itsthesky/disky/DiSky.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void onEnable() {
DynamicElements.registerLogs();
DynamicElements.registerThreadProperties();

addonInstance.loadClasses("info.itsthesky.disky.elements");
addonInstance.loadClasses("net.itsthesky.disky.elements");
moduleManager.loadModules();
} catch (IOException e) {
errorHandler.exception(null, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Class<?> clazz();

/**
* Whether this structure can be made from a {@link info.itsthesky.disky.elements.sections.CreateStructSection create structure section}.
* Whether this structure can be made from a {@link net.itsthesky.disky.elements.sections.CreateStructSection create structure section}.
* A data structure may only serve as "sub-data structure" for other structures (like {@link EmbedFieldStructure} for {@link EmbedStructure}).
*/
boolean canBeCreated() default true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static <T, D extends DataStruct<T>> void registerBasicDataStructure(Class

final Class<?> elementClass = new ByteBuddy()
.redefine(ReflectBasicDataStructure.class)
.name("info.itsthesky.disky.elements.reflects.ReflectDataStructureElement_" + COUNT.incrementAndGet())
.name("net.itsthesky.disky.elements.reflects.ReflectDataStructureElement_" + COUNT.incrementAndGet())

.method(named("getReturnType")).intercept(MethodDelegation.to(new ReturnClassMethodInterceptor(returnType)))
.method(named("getDataStructClass")).intercept(MethodDelegation.to(new ReturnClassMethodInterceptor(clazz)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static <F, T> void register(String fromTypeName,

final Class<?> elementClass = new ByteBuddy()
.redefine(ReflectProperty.class)
.name("info.itsthesky.disky.elements.reflects.ReflectProperty_" + COUNT.incrementAndGet())
.name("net.itsthesky.disky.elements.reflects.ReflectProperty_" + COUNT.incrementAndGet())

.annotateType(AnnotationDescription.Builder.ofType(Name.class).define("value", documentation.getName()).build())
.annotateType(AnnotationDescription.Builder.ofType(Description.class).defineArray("value", documentation.getDescription()).build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static <T, E extends Event> void registerEventExpression(

final Class<?> elementClass = new ByteBuddy()
.redefine(ReflectGetterExpression.class)
.name("info.itsthesky.disky.elements.reflects.ReflectGetterExpression_" + COUNT.incrementAndGet())
.name("net.itsthesky.disky.elements.reflects.ReflectGetterExpression_" + COUNT.incrementAndGet())

.method(named("convert")).intercept(MethodDelegation.to(new ReflectClassFactory.ConvertMethodInterceptor<>(converter)))
.method(named("getPropertyName")).intercept(MethodDelegation.to(new ReflectClassFactory.PropertyNameMethodInterceptor(stripPattern(pattern))))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static <T> void register(
// Condition
final Class<?> conditionClass = new ByteBuddy()
.redefine(DiSkyStateCondition.class)
.name("info.itsthesky.disky.api.skript.reflects.state.CondState_" + COUNT.incrementAndGet())
.name("net.itsthesky.disky.api.skript.reflects.state.CondState_" + COUNT.incrementAndGet())

.method(named("check")).intercept(MethodDelegation.to(new CheckMethod<>(getter)))
.method(named("getPropertyName")).intercept(MethodDelegation.to(new PropertyNameMethodInterceptor(stateName + " state")))
Expand All @@ -59,7 +59,7 @@ public static <T> void register(
// Property
final Class<?> propertyClass = new ByteBuddy()
.redefine(DiSkyStateProperty.class)
.name("info.itsthesky.disky.api.skript.reflects.state.PropState_" + COUNT.incrementAndGet())
.name("net.itsthesky.disky.api.skript.reflects.state.PropState_" + COUNT.incrementAndGet())

.method(named("convert")).intercept(MethodDelegation.to(new CheckMethod<>(getter)))
.method(named("getPropertyName")).intercept(MethodDelegation.to(new PropertyNameMethodInterceptor(stateName + " state")))
Expand Down

0 comments on commit 6590c09

Please sign in to comment.