Updated package names in [PlutoLib]

This commit is contained in:
493msi 2020-09-23 17:31:03 +02:00
parent ee8683c037
commit 2c738b88ac
19 changed files with 53 additions and 37 deletions

View File

@ -2,6 +2,12 @@
* `build.gradle` Extracted the version numbers into separate variables * `build.gradle` Extracted the version numbers into separate variables
* `build.gradle` **[experimental]** `gradlew` should now automatically download JDK11 when needed * `build.gradle` **[experimental]** `gradlew` should now automatically download JDK11 when needed
* `build.gradle` Updated the build scripts and added source Maven publication * `build.gradle` Updated the build scripts and added source Maven publication
* `[PlutoLib]` Renamed the `cz.tefek.pluto.eventsystem` package to `cz.tefek.pluto.event`
* Moved all subpackages
* Updated all references
* `[PlutoLib]` Minor code cleanup in `cz.tefek.pluto.modloader.event`
* `[Pluto]` Moved `TPL` from `cz.tefek.pluto.tpl` to `cz.tefek.pluto.io.tpl`
* Updated all references
* `[PlutoMesher]` Renamed all occurrences of `attrib` to `attribute` * `[PlutoMesher]` Renamed all occurrences of `attrib` to `attribute`
* Renamed `VertexArray#createArrayAttrib` to `VertexArray#createArrayAttribute` * Renamed `VertexArray#createArrayAttrib` to `VertexArray#createArrayAttribute`
* Renamed `VertexArray#getVertexAttribs` to `VertexArray#getVertexAttributes` * Renamed `VertexArray#getVertexAttribs` to `VertexArray#getVertexAttributes`

View File

@ -1,4 +1,4 @@
package cz.tefek.pluto.eventsystem; package cz.tefek.pluto.event;
/** /**
* @author 493msi * @author 493msi

View File

@ -1,4 +1,4 @@
package cz.tefek.pluto.eventsystem.lambda; package cz.tefek.pluto.event.lambda;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package cz.tefek.pluto.eventsystem.staticmode; package cz.tefek.pluto.event.staticmode;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME; import static java.lang.annotation.RetentionPolicy.RUNTIME;
@ -6,7 +6,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import cz.tefek.pluto.eventsystem.EventData; import cz.tefek.pluto.event.EventData;
/** /**
* @author 493msi * @author 493msi

View File

@ -1,4 +1,4 @@
package cz.tefek.pluto.eventsystem.staticmode; package cz.tefek.pluto.event.staticmode;
import java.util.*; import java.util.*;
import java.util.Map.Entry; import java.util.Map.Entry;
@ -7,7 +7,7 @@ import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import cz.tefek.pluto.eventsystem.EventData; import cz.tefek.pluto.event.EventData;
import cz.tefek.pluto.io.logger.Logger; import cz.tefek.pluto.io.logger.Logger;
import cz.tefek.pluto.io.logger.SmartSeverity; import cz.tefek.pluto.io.logger.SmartSeverity;

View File

@ -1,4 +1,4 @@
package cz.tefek.pluto.tpl; package cz.tefek.pluto.io.tpl;
import java.awt.Graphics2D; import java.awt.Graphics2D;
import java.awt.image.*; import java.awt.image.*;

View File

@ -1,4 +1,4 @@
package cz.tefek.pluto.tpl; package cz.tefek.pluto.io.tpl;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;

View File

@ -6,7 +6,7 @@ import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import cz.tefek.pluto.eventsystem.staticmode.StaticPlutoEventManager; import cz.tefek.pluto.event.staticmode.StaticPlutoEventManager;
import cz.tefek.pluto.io.asl.resource.ResourceHelper; import cz.tefek.pluto.io.asl.resource.ResourceHelper;
import cz.tefek.pluto.io.logger.Logger; import cz.tefek.pluto.io.logger.Logger;
import cz.tefek.pluto.io.logger.SmartSeverity; import cz.tefek.pluto.io.logger.SmartSeverity;

View File

@ -1,20 +1,22 @@
package cz.tefek.pluto.modloader.event; package cz.tefek.pluto.modloader.event;
import static java.lang.annotation.ElementType.METHOD; import java.lang.annotation.ElementType;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import cz.tefek.pluto.eventsystem.staticmode.StaticPlutoEvent; import cz.tefek.pluto.event.staticmode.StaticPlutoEvent;
@Retention(RUNTIME)
@Target(METHOD)
@StaticPlutoEvent(passingParamClass = ModLoadEvent.class)
/** /**
* Marks a static method as an event handler for mod loading.
*
* @author 493msi * @author 493msi
* *
* @since pre-alpha
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@StaticPlutoEvent(passingParamClass = ModLoadEvent.class)
public @interface ModLoad public @interface ModLoad
{ {

View File

@ -1,6 +1,6 @@
package cz.tefek.pluto.modloader.event; package cz.tefek.pluto.modloader.event;
import cz.tefek.pluto.eventsystem.EventData; import cz.tefek.pluto.event.EventData;
import cz.tefek.pluto.modloader.ModEntry; import cz.tefek.pluto.modloader.ModEntry;
/** /**

View File

@ -1,20 +1,22 @@
package cz.tefek.pluto.modloader.event; package cz.tefek.pluto.modloader.event;
import static java.lang.annotation.ElementType.METHOD; import java.lang.annotation.ElementType;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import cz.tefek.pluto.eventsystem.staticmode.StaticPlutoEvent; import cz.tefek.pluto.event.staticmode.StaticPlutoEvent;
@Retention(RUNTIME)
@Target(METHOD)
@StaticPlutoEvent(passingParamClass = ModPostLoadEvent.class)
/** /**
* Marks a static method as an event handler for mod post-loading.
*
* @author 493msi * @author 493msi
* *
* @since pre-alpha
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@StaticPlutoEvent(passingParamClass = ModPostLoadEvent.class)
public @interface ModPostLoad public @interface ModPostLoad
{ {

View File

@ -3,7 +3,7 @@ package cz.tefek.pluto.modloader.event;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import cz.tefek.pluto.eventsystem.EventData; import cz.tefek.pluto.event.EventData;
import cz.tefek.pluto.modloader.ModEntry; import cz.tefek.pluto.modloader.ModEntry;
/** /**

View File

@ -3,18 +3,24 @@ package cz.tefek.pluto.modloader.event;
import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME; import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import cz.tefek.pluto.eventsystem.staticmode.StaticPlutoEvent; import cz.tefek.pluto.event.staticmode.StaticPlutoEvent;
@Retention(RUNTIME)
@Target(METHOD)
@StaticPlutoEvent(passingParamClass = ModPreLoadEvent.class)
/** /**
* Marks a static method as an event handler for mod pre-loading.
*
* @author 493msi * @author 493msi
* *
* @since pre-alpha
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@StaticPlutoEvent(passingParamClass = ModPreLoadEvent.class)
public @interface ModPreLoad public @interface ModPreLoad
{ {

View File

@ -2,7 +2,7 @@ package cz.tefek.pluto.modloader.event;
import java.util.List; import java.util.List;
import cz.tefek.pluto.eventsystem.EventData; import cz.tefek.pluto.event.EventData;
import cz.tefek.pluto.modloader.Mod; import cz.tefek.pluto.modloader.Mod;
import cz.tefek.pluto.modloader.ModEntry; import cz.tefek.pluto.modloader.ModEntry;

View File

@ -6,7 +6,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import cz.tefek.pluto.eventsystem.staticmode.StaticPlutoEvent; import cz.tefek.pluto.event.staticmode.StaticPlutoEvent;
@Retention(RUNTIME) @Retention(RUNTIME)
@Target(METHOD) @Target(METHOD)

View File

@ -1,6 +1,6 @@
package cz.tefek.pluto.modloader.event; package cz.tefek.pluto.modloader.event;
import cz.tefek.pluto.eventsystem.EventData; import cz.tefek.pluto.event.EventData;
import cz.tefek.pluto.modloader.ModEntry; import cz.tefek.pluto.modloader.ModEntry;
/** /**

View File

@ -2,8 +2,8 @@ package cz.tefek.pluto.engine.shader.uniform.auto;
import org.joml.Matrix4fc; import org.joml.Matrix4fc;
import cz.tefek.pluto.eventsystem.lambda.LambdaEventFactory; import cz.tefek.pluto.event.lambda.LambdaEventFactory;
import cz.tefek.pluto.eventsystem.lambda.LambdaEventFactory.LambdaEvent; import cz.tefek.pluto.event.lambda.LambdaEventFactory.LambdaEvent;
public class AutomaticUniforms public class AutomaticUniforms
{ {

View File

@ -5,7 +5,7 @@ import org.lwjgl.glfw.GLFWImage;
import java.nio.file.Path; import java.nio.file.Path;
import cz.tefek.pluto.tpl.TPL; import cz.tefek.pluto.io.tpl.TPL;
/** /**
* A utility class to load image files for use in GLFW. * A utility class to load image files for use in GLFW.

View File

@ -10,8 +10,8 @@ import java.util.Arrays;
import cz.tefek.pluto.io.asl.resource.ResourceAddress; import cz.tefek.pluto.io.asl.resource.ResourceAddress;
import cz.tefek.pluto.io.logger.Logger; import cz.tefek.pluto.io.logger.Logger;
import cz.tefek.pluto.io.logger.SmartSeverity; import cz.tefek.pluto.io.logger.SmartSeverity;
import cz.tefek.pluto.tpl.TPL; import cz.tefek.pluto.io.tpl.TPL;
import cz.tefek.pluto.tpl.TPNImage; import cz.tefek.pluto.io.tpl.TPNImage;
public abstract class Texture public abstract class Texture
{ {