Add SPDX header.

This commit is contained in:
Florian Nücke
2022-02-03 21:42:17 +01:00
parent 5e9dd1a4e5
commit c1679223bd
454 changed files with 908 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api;
import com.google.gson.GsonBuilder;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus;
import net.minecraft.core.BlockPos;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus;
import li.cil.oc2.api.bus.device.Device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus;
import li.cil.oc2.api.bus.device.Device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus;
import li.cil.oc2.api.bus.device.Device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device;
import li.cil.oc2.api.bus.DeviceBus;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device;
import li.cil.oc2.api.API;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device;
import li.cil.oc2.api.API;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device;
import li.cil.oc2.api.bus.device.provider.ItemDeviceProvider;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.data;
import li.cil.oc2.api.API;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.data;
import li.cil.oc2.api.API;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.data;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
import li.cil.oc2.api.bus.device.rpc.RPCMethod;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
import li.cil.oc2.api.bus.device.rpc.AbstractRPCMethod;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
/**

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
import li.cil.oc2.api.bus.device.rpc.RPCDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
import net.minecraft.world.level.block.Block;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
import li.cil.oc2.api.bus.device.rpc.RPCDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.object;
import java.lang.annotation.ElementType;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.object;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.provider;
import li.cil.oc2.api.bus.device.Device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.provider;
import net.minecraft.core.BlockPos;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.provider;
import li.cil.oc2.api.bus.device.ItemDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.provider;
import net.minecraft.world.entity.Entity;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.provider;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.rpc;
import javax.annotation.Nullable;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.rpc;
import li.cil.oc2.api.bus.device.Device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.rpc;
import com.google.gson.Gson;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.rpc;
import li.cil.oc2.api.bus.device.object.ObjectDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.rpc;
import li.cil.oc2.api.bus.DeviceBusController;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.rpc;
import java.util.Optional;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.rpc;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm;
/**

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm;
import li.cil.oc2.api.bus.device.Device;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm;
import li.cil.oc2.api.bus.device.vm.context.VMContext;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.context;
import li.cil.oc2.api.bus.device.vm.VMDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.context;
/**

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.context;
import li.cil.oc2.api.bus.device.vm.VMDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.context;
import li.cil.oc2.api.bus.DeviceBus;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.context;
/**

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.vm.context;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.event;
import net.minecraft.network.chat.Component;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.event;
import li.cil.oc2.api.bus.device.vm.VMDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.event;
import li.cil.oc2.api.bus.device.vm.VMDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.bus.device.vm.event;
/**

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.vm.event;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.bus.device.vm;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
/**
* The device bus is the glue that connects devices and VMs.
* <p>

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.capabilities;
import li.cil.oc2.api.bus.device.ItemDevice;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.capabilities;
/**

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.capabilities;
import net.minecraftforge.items.ItemStackHandler;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.capabilities;
import li.cil.oc2.api.bus.device.provider.BlockDeviceQuery;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.capabilities;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.imc;
import com.google.gson.Gson;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.imc;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.util;
import java.util.ArrayList;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.util;
import net.minecraft.core.Direction;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.api.util;
import net.minecraft.core.Direction;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.api.util;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client;
import li.cil.oc2.api.bus.device.DeviceType;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.audio;
import li.cil.oc2.common.util.TickUtils;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.audio;
import net.minecraft.client.Minecraft;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.audio;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.platform.InputConstants;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import li.cil.oc2.common.container.ComputerTerminalContainer;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import it.unimi.dsi.fastutil.ints.Int2IntArrayMap;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.platform.GlStateManager;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import li.cil.oc2.client.gui.widget.Sprite;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui;
import li.cil.oc2.client.gui.widget.Texture;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.gui;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui.terminal;
import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.gui.terminal;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui.util;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.gui.util;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui.widget;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui.widget;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui.widget;
import com.mojang.blaze3d.systems.RenderSystem;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.gui.widget;
import com.mojang.blaze3d.vertex.PoseStack;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.gui.widget;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.item;
import li.cil.oc2.common.item.Items;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.item;
import li.cil.oc2.api.API;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.item;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.manual;
import li.cil.manual.api.ManualModel;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.manual;
import li.cil.manual.api.ManualScreenStyle;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.manual;
import li.cil.manual.api.ManualStyle;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package li.cil.oc2.client.manual;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.model;
import li.cil.oc2.common.Constants;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.model;
import com.mojang.datafixers.util.Pair;

View File

@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MIT */
package li.cil.oc2.client.model;
import com.google.gson.JsonDeserializationContext;

Some files were not shown because too many files have changed in this diff Show More