Skip to content

Commit

Permalink
Ctrl Shift R
Browse files Browse the repository at this point in the history
- Bulk replace com.jozufozu.flywheel with dev.engine_room.flywheel
- Optimize imports
  • Loading branch information
Jozufozu committed May 25, 2024
1 parent 6e71004 commit a69389c
Show file tree
Hide file tree
Showing 456 changed files with 1,650 additions and 1,727 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api;
package dev.engine_room.flywheel.api;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api;
package dev.engine_room.flywheel.api;

import net.minecraft.resources.ResourceLocation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.jozufozu.flywheel.api.backend;

import com.jozufozu.flywheel.api.BackendImplemented;
import com.jozufozu.flywheel.api.internal.FlwApiLink;
import com.jozufozu.flywheel.api.registry.IdRegistry;
package dev.engine_room.flywheel.api.backend;

import dev.engine_room.flywheel.api.BackendImplemented;
import dev.engine_room.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.registry.IdRegistry;
import net.minecraft.world.level.LevelAccessor;

@BackendImplemented
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jozufozu.flywheel.api.backend;
package dev.engine_room.flywheel.api.backend;

import com.jozufozu.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.internal.FlwApiLink;

public final class BackendManager {
private BackendManager() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package com.jozufozu.flywheel.api.backend;
package dev.engine_room.flywheel.api.backend;

import java.util.List;

import com.jozufozu.flywheel.api.BackendImplemented;
import com.jozufozu.flywheel.api.event.RenderContext;
import com.jozufozu.flywheel.api.event.RenderStage;
import com.jozufozu.flywheel.api.instance.Instance;
import com.jozufozu.flywheel.api.task.Plan;
import com.jozufozu.flywheel.api.task.TaskExecutor;
import com.jozufozu.flywheel.api.visualization.VisualizationContext;

import dev.engine_room.flywheel.api.BackendImplemented;
import dev.engine_room.flywheel.api.event.RenderContext;
import dev.engine_room.flywheel.api.event.RenderStage;
import dev.engine_room.flywheel.api.instance.Instance;
import dev.engine_room.flywheel.api.task.Plan;
import dev.engine_room.flywheel.api.task.TaskExecutor;
import dev.engine_room.flywheel.api.visualization.VisualizationContext;
import net.minecraft.client.Camera;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Vec3i;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.event;
package dev.engine_room.flywheel.api.event;

import org.jetbrains.annotations.ApiStatus;
import org.joml.Matrix4f;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.event;
package dev.engine_room.flywheel.api.event;

public enum RenderStage {
AFTER_ENTITIES,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.instance;
package dev.engine_room.flywheel.api.instance;

public interface Instance {
InstanceType<?> type();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jozufozu.flywheel.api.instance;
package dev.engine_room.flywheel.api.instance;

import com.jozufozu.flywheel.api.BackendImplemented;
import dev.engine_room.flywheel.api.BackendImplemented;

@BackendImplemented
public interface InstanceHandle {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.jozufozu.flywheel.api.instance;

import com.jozufozu.flywheel.api.internal.FlwApiLink;
import com.jozufozu.flywheel.api.layout.Layout;
import com.jozufozu.flywheel.api.registry.Registry;
package dev.engine_room.flywheel.api.instance;

import dev.engine_room.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.layout.Layout;
import dev.engine_room.flywheel.api.registry.Registry;
import net.minecraft.resources.ResourceLocation;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.instance;
package dev.engine_room.flywheel.api.instance;

/**
* InstanceWriters can quickly consume many instances and write them to some memory address.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.jozufozu.flywheel.api.instance;
package dev.engine_room.flywheel.api.instance;

import org.jetbrains.annotations.Nullable;

import com.jozufozu.flywheel.api.BackendImplemented;
import dev.engine_room.flywheel.api.BackendImplemented;

/**
* An instancer is how you interact with an instanced model.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jozufozu.flywheel.api.instance;
package dev.engine_room.flywheel.api.instance;

import com.jozufozu.flywheel.api.BackendImplemented;
import com.jozufozu.flywheel.api.model.Model;
import dev.engine_room.flywheel.api.BackendImplemented;
import dev.engine_room.flywheel.api.model.Model;

@BackendImplemented
public interface InstancerProvider {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.internal;
package dev.engine_room.flywheel.api.internal;

import java.lang.reflect.Constructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package com.jozufozu.flywheel.api.internal;
package dev.engine_room.flywheel.api.internal;

import org.jetbrains.annotations.Nullable;

import com.jozufozu.flywheel.api.backend.Backend;
import com.jozufozu.flywheel.api.layout.LayoutBuilder;
import com.jozufozu.flywheel.api.registry.IdRegistry;
import com.jozufozu.flywheel.api.registry.Registry;
import com.jozufozu.flywheel.api.vertex.VertexViewProvider;
import com.jozufozu.flywheel.api.visualization.BlockEntityVisualizer;
import com.jozufozu.flywheel.api.visualization.EntityVisualizer;
import com.jozufozu.flywheel.api.visualization.VisualizationManager;
import com.mojang.blaze3d.vertex.VertexFormat;

import dev.engine_room.flywheel.api.backend.Backend;
import dev.engine_room.flywheel.api.layout.LayoutBuilder;
import dev.engine_room.flywheel.api.registry.IdRegistry;
import dev.engine_room.flywheel.api.registry.Registry;
import dev.engine_room.flywheel.api.vertex.VertexViewProvider;
import dev.engine_room.flywheel.api.visualization.BlockEntityVisualizer;
import dev.engine_room.flywheel.api.visualization.EntityVisualizer;
import dev.engine_room.flywheel.api.visualization.VisualizationManager;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;

public interface FlwApiLink {
FlwApiLink INSTANCE = DependencyInjection.load(FlwApiLink.class, "com.jozufozu.flywheel.impl.FlwApiLinkImpl");
FlwApiLink INSTANCE = DependencyInjection.load(FlwApiLink.class, "dev.engine_room.flywheel.impl.FlwApiLinkImpl");

<T> Registry<T> createRegistry();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@ParametersAreNonnullByDefault
@FieldsAreNonnullByDefault
@MethodsReturnNonnullByDefault
package com.jozufozu.flywheel.api.internal;
package dev.engine_room.flywheel.api.internal;

import javax.annotation.ParametersAreNonnullByDefault;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Range;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

public sealed interface ElementType permits ScalarElementType, VectorElementType, MatrixElementType, ArrayElementType {
int byteSize();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

public enum FloatRepr implements ValueRepr {
BYTE(Byte.BYTES),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

public enum IntegerRepr implements ValueRepr {
BYTE(Byte.BYTES),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Range;

import com.jozufozu.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.internal.FlwApiLink;

@ApiStatus.NonExtendable
public interface LayoutBuilder {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Range;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

import org.jetbrains.annotations.ApiStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

public enum UnsignedIntegerRepr implements ValueRepr {
UNSIGNED_BYTE(Byte.BYTES),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

public sealed interface ValueRepr permits IntegerRepr, UnsignedIntegerRepr, FloatRepr {
int byteSize();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.layout;
package dev.engine_room.flywheel.api.layout;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Range;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.jozufozu.flywheel.api.material;

import com.jozufozu.flywheel.api.internal.FlwApiLink;
import com.jozufozu.flywheel.api.registry.Registry;
package dev.engine_room.flywheel.api.material;

import dev.engine_room.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.registry.Registry;
import net.minecraft.resources.ResourceLocation;

public interface CutoutShader {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.material;
package dev.engine_room.flywheel.api.material;

public enum DepthTest {
OFF,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.jozufozu.flywheel.api.material;

import com.jozufozu.flywheel.api.internal.FlwApiLink;
import com.jozufozu.flywheel.api.registry.Registry;
package dev.engine_room.flywheel.api.material;

import dev.engine_room.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.registry.Registry;
import net.minecraft.resources.ResourceLocation;

public interface FogShader {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.material;
package dev.engine_room.flywheel.api.material;

import net.minecraft.resources.ResourceLocation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.jozufozu.flywheel.api.material;

import com.jozufozu.flywheel.api.internal.FlwApiLink;
import com.jozufozu.flywheel.api.registry.Registry;
package dev.engine_room.flywheel.api.material;

import dev.engine_room.flywheel.api.internal.FlwApiLink;
import dev.engine_room.flywheel.api.registry.Registry;
import net.minecraft.resources.ResourceLocation;

public interface MaterialShaders {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.material;
package dev.engine_room.flywheel.api.material;

public enum Transparency {
OPAQUE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.material;
package dev.engine_room.flywheel.api.material;

public enum WriteMask {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.model;
package dev.engine_room.flywheel.api.model;

/**
* Represents a sequence of unsigned integer vertex indices.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.jozufozu.flywheel.api.model;
package dev.engine_room.flywheel.api.model;

import org.joml.Vector4fc;

import com.jozufozu.flywheel.api.vertex.MutableVertexList;
import dev.engine_room.flywheel.api.vertex.MutableVertexList;

/**
* A holder for arbitrary vertex data that can be written to memory or a vertex list.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.jozufozu.flywheel.api.model;
package dev.engine_room.flywheel.api.model;

import java.util.List;

import org.joml.Vector4fc;

import com.jozufozu.flywheel.api.material.Material;
import dev.engine_room.flywheel.api.material.Material;

public interface Model {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.registry;
package dev.engine_room.flywheel.api.registry;

import java.util.Collection;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.registry;
package dev.engine_room.flywheel.api.registry;

import java.util.Set;
import java.util.function.Consumer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.task;
package dev.engine_room.flywheel.api.task;

public interface Plan<C> {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.task;
package dev.engine_room.flywheel.api.task;

import java.util.concurrent.Executor;
import java.util.function.BooleanSupplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.vertex;
package dev.engine_room.flywheel.api.vertex;

public interface MutableVertexList extends VertexList {
void x(int index, float x);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.vertex;
package dev.engine_room.flywheel.api.vertex;

import org.joml.Vector3f;
import org.joml.Vector4f;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.vertex;
package dev.engine_room.flywheel.api.vertex;

public interface VertexView extends MutableVertexList {
long ptr();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jozufozu.flywheel.api.vertex;
package dev.engine_room.flywheel.api.vertex;

public interface VertexViewProvider {
VertexView createVertexView();
Expand Down
Loading

0 comments on commit a69389c

Please sign in to comment.