mirror of
https://github.com/RoBaertschi/EnvironmentTech.git
synced 2025-04-19 06:53:29 +00:00
I now own a domain!!!
This commit is contained in:
parent
4ab2bf0f48
commit
15c45cfeed
1
COPYING
1
COPYING
@ -6,6 +6,7 @@ Some code might have a different license, if this is true, then there will be a
|
|||||||
Other Licenses:
|
Other Licenses:
|
||||||
- src
|
- src
|
||||||
- main
|
- main
|
||||||
|
- xyz
|
||||||
- robaertschi
|
- robaertschi
|
||||||
- environmenttech
|
- environmenttech
|
||||||
- client
|
- client
|
||||||
|
@ -103,11 +103,11 @@ spotless {
|
|||||||
java {
|
java {
|
||||||
// Originally, this was from Kaupenjoe's repo, and was licensed by BluSunrize as the original code was from her, so we exclude it to not add our License Header
|
// Originally, this was from Kaupenjoe's repo, and was licensed by BluSunrize as the original code was from her, so we exclude it to not add our License Header
|
||||||
targetExclude(
|
targetExclude(
|
||||||
"src/main/java/robaertschi/environmenttech/client/renderer/EnvStorageRenderer.java",
|
"src/main/java/xyz/robaertschi/environmenttech/client/renderer/EnvStorageRenderer.java",
|
||||||
"src/main/java/robaertschi/environmenttech/utils/MouseUtils.java",
|
"src/main/java/xyz/robaertschi/environmenttech/utils/MouseUtils.java",
|
||||||
"src/main/java/robaertschi/environmenttech/client/RenderUtils.java"
|
"src/main/java/xyz/robaertschi/environmenttech/client/RenderUtils.java"
|
||||||
)
|
)
|
||||||
importOrder("lombok", "java|javax", "", "net.minecraft", "com.mojang", "robaertschi", "\\#")
|
importOrder("lombok", "java|javax", "", "net.minecraft", "com.mojang", "xyz.robaertschi", "\\#")
|
||||||
removeUnusedImports()
|
removeUnusedImports()
|
||||||
licenseHeaderFile("HEADER.java")
|
licenseHeaderFile("HEADER.java")
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.unittest;
|
package xyz.robaertschi.environmenttech.unittest;
|
||||||
|
|
||||||
|
|
||||||
import net.neoforged.fml.common.Mod;
|
import net.neoforged.fml.common.Mod;
|
@ -14,11 +14,11 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.unittest;
|
package xyz.robaertschi.environmenttech.unittest;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import robaertschi.environmenttech.client.screen.ProgressArrowUtils;
|
import xyz.robaertschi.environmenttech.client.screen.ProgressArrowUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.*;
|
import static org.assertj.core.api.Assertions.*;
|
||||||
|
|
@ -14,14 +14,14 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech;
|
package xyz.robaertschi.environmenttech;
|
||||||
|
|
||||||
import net.neoforged.bus.api.SubscribeEvent;
|
import net.neoforged.bus.api.SubscribeEvent;
|
||||||
import net.neoforged.fml.common.EventBusSubscriber;
|
import net.neoforged.fml.common.EventBusSubscriber;
|
||||||
import net.neoforged.fml.event.config.ModConfigEvent;
|
import net.neoforged.fml.event.config.ModConfigEvent;
|
||||||
import net.neoforged.neoforge.common.ModConfigSpec;
|
import net.neoforged.neoforge.common.ModConfigSpec;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import static xyz.robaertschi.environmenttech.ET.MODID;
|
||||||
|
|
||||||
// An example config class. This is not required, but it's a good idea to have one to keep your config organized.
|
// An example config class. This is not required, but it's a good idea to have one to keep your config organized.
|
||||||
// Demonstrates how to use Neo's config APIs
|
// Demonstrates how to use Neo's config APIs
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech;
|
package xyz.robaertschi.environmenttech;
|
||||||
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech;
|
package xyz.robaertschi.environmenttech;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.bus.api.SubscribeEvent;
|
import net.neoforged.bus.api.SubscribeEvent;
|
||||||
@ -27,21 +27,21 @@ import org.slf4j.Logger;
|
|||||||
|
|
||||||
import com.mojang.logging.LogUtils;
|
import com.mojang.logging.LogUtils;
|
||||||
|
|
||||||
import robaertschi.environmenttech.command.EnvironmenttechCommand;
|
import xyz.robaertschi.environmenttech.command.EnvironmenttechCommand;
|
||||||
import robaertschi.environmenttech.compat.ETCompat;
|
import xyz.robaertschi.environmenttech.compat.ETCompat;
|
||||||
import robaertschi.environmenttech.data.attachments.ETAttachments;
|
import xyz.robaertschi.environmenttech.data.attachments.ETAttachments;
|
||||||
import robaertschi.environmenttech.data.capabilities.ETCapabilities;
|
import xyz.robaertschi.environmenttech.data.capabilities.ETCapabilities;
|
||||||
import robaertschi.environmenttech.data.components.ETComponents;
|
import xyz.robaertschi.environmenttech.data.components.ETComponents;
|
||||||
import robaertschi.environmenttech.data.recipes.ETRecipes;
|
import xyz.robaertschi.environmenttech.data.recipes.ETRecipes;
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
import robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
import xyz.robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
||||||
import robaertschi.environmenttech.level.fluid.ETFluidTypes;
|
import xyz.robaertschi.environmenttech.level.fluid.ETFluidTypes;
|
||||||
import robaertschi.environmenttech.level.fluid.ETFluids;
|
import xyz.robaertschi.environmenttech.level.fluid.ETFluids;
|
||||||
import robaertschi.environmenttech.level.item.ETItems;
|
import xyz.robaertschi.environmenttech.level.item.ETItems;
|
||||||
import robaertschi.environmenttech.level.particle.ETParticles;
|
import xyz.robaertschi.environmenttech.level.particle.ETParticles;
|
||||||
import robaertschi.environmenttech.menu.ETMenus;
|
import xyz.robaertschi.environmenttech.menu.ETMenus;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import static xyz.robaertschi.environmenttech.ET.MODID;
|
||||||
|
|
||||||
|
|
||||||
@Mod(MODID)
|
@Mod(MODID)
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.client;
|
package xyz.robaertschi.environmenttech.client;
|
||||||
|
|
||||||
import net.neoforged.bus.api.SubscribeEvent;
|
import net.neoforged.bus.api.SubscribeEvent;
|
||||||
import net.neoforged.fml.common.EventBusSubscriber;
|
import net.neoforged.fml.common.EventBusSubscriber;
|
||||||
@ -23,17 +23,17 @@ import net.neoforged.neoforge.client.event.*;
|
|||||||
|
|
||||||
import net.minecraft.client.renderer.item.ItemProperties;
|
import net.minecraft.client.renderer.item.ItemProperties;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.client.particle.EnvParticleProvider;
|
import xyz.robaertschi.environmenttech.client.particle.EnvParticleProvider;
|
||||||
import robaertschi.environmenttech.client.screen.EnvCollectorScreen;
|
import xyz.robaertschi.environmenttech.client.screen.EnvCollectorScreen;
|
||||||
import robaertschi.environmenttech.data.components.ETComponents;
|
import xyz.robaertschi.environmenttech.data.components.ETComponents;
|
||||||
import robaertschi.environmenttech.data.components.FilledComponent;
|
import xyz.robaertschi.environmenttech.data.components.FilledComponent;
|
||||||
import robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
import xyz.robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
||||||
import robaertschi.environmenttech.level.block.entity.renderer.EnvCollectorRenderer;
|
import xyz.robaertschi.environmenttech.level.block.entity.renderer.EnvCollectorRenderer;
|
||||||
import robaertschi.environmenttech.level.block.entity.renderer.EnvDistributorRenderer;
|
import xyz.robaertschi.environmenttech.level.block.entity.renderer.EnvDistributorRenderer;
|
||||||
import robaertschi.environmenttech.level.item.ETItems;
|
import xyz.robaertschi.environmenttech.level.item.ETItems;
|
||||||
import robaertschi.environmenttech.level.particle.ETParticles;
|
import xyz.robaertschi.environmenttech.level.particle.ETParticles;
|
||||||
import robaertschi.environmenttech.menu.ETMenus;
|
import xyz.robaertschi.environmenttech.menu.ETMenus;
|
||||||
|
|
||||||
@EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD)
|
@EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD)
|
||||||
public class ETClient {
|
public class ETClient {
|
@ -1,4 +1,4 @@
|
|||||||
package robaertschi.environmenttech.client;
|
package xyz.robaertschi.environmenttech.client;
|
||||||
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
import com.mojang.blaze3d.vertex.VertexConsumer;
|
import com.mojang.blaze3d.vertex.VertexConsumer;
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.client.particle;
|
package xyz.robaertschi.environmenttech.client.particle;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ import net.minecraft.client.particle.ParticleProvider;
|
|||||||
import net.minecraft.client.particle.SpriteSet;
|
import net.minecraft.client.particle.SpriteSet;
|
||||||
import net.minecraft.core.particles.SimpleParticleType;
|
import net.minecraft.core.particles.SimpleParticleType;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.particle.EnvParticle;
|
import xyz.robaertschi.environmenttech.level.particle.EnvParticle;
|
||||||
|
|
||||||
@AllArgsConstructor()
|
@AllArgsConstructor()
|
||||||
public class EnvParticleProvider implements ParticleProvider<SimpleParticleType> {
|
public class EnvParticleProvider implements ParticleProvider<SimpleParticleType> {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.client.renderer;
|
package xyz.robaertschi.environmenttech.client.renderer;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package robaertschi.environmenttech.client.renderer;
|
package xyz.robaertschi.environmenttech.client.renderer;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
@ -8,8 +8,8 @@ import net.minecraft.client.gui.GuiGraphics;
|
|||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.util.FastColor;
|
import net.minecraft.util.FastColor;
|
||||||
|
|
||||||
import robaertschi.environmenttech.data.capabilities.IEnvStorage;
|
import xyz.robaertschi.environmenttech.data.capabilities.IEnvStorage;
|
||||||
import robaertschi.environmenttech.utils.MouseUtils;
|
import xyz.robaertschi.environmenttech.utils.MouseUtils;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BluSunrize
|
* BluSunrize
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.client.screen;
|
package xyz.robaertschi.environmenttech.client.screen;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
@ -24,9 +24,9 @@ import net.minecraft.network.chat.Component;
|
|||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.entity.player.Inventory;
|
import net.minecraft.world.entity.player.Inventory;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
import xyz.robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
||||||
import robaertschi.environmenttech.menu.EnvCollectorMenu;
|
import xyz.robaertschi.environmenttech.menu.EnvCollectorMenu;
|
||||||
|
|
||||||
public class EnvCollectorScreen extends AbstractContainerScreen<EnvCollectorMenu> {
|
public class EnvCollectorScreen extends AbstractContainerScreen<EnvCollectorMenu> {
|
||||||
public static final ResourceLocation GUI = ET.id("textures/gui/container/env_collector.png");
|
public static final ResourceLocation GUI = ET.id("textures/gui/container/env_collector.png");
|
@ -14,11 +14,11 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.client.screen;
|
package xyz.robaertschi.environmenttech.client.screen;
|
||||||
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
public class ProgressArrowUtils {
|
public class ProgressArrowUtils {
|
||||||
public static final ResourceLocation SPRITE = ET.id("textures/gui/sprites/component/progress_arrow.png");
|
public static final ResourceLocation SPRITE = ET.id("textures/gui/sprites/component/progress_arrow.png");
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.command;
|
package xyz.robaertschi.environmenttech.command;
|
||||||
|
|
||||||
import net.neoforged.neoforge.server.command.EnumArgument;
|
import net.neoforged.neoforge.server.command.EnumArgument;
|
||||||
|
|
||||||
@ -29,9 +29,9 @@ import net.minecraft.world.level.chunk.ChunkAccess;
|
|||||||
import com.mojang.brigadier.CommandDispatcher;
|
import com.mojang.brigadier.CommandDispatcher;
|
||||||
import com.mojang.brigadier.arguments.LongArgumentType;
|
import com.mojang.brigadier.arguments.LongArgumentType;
|
||||||
|
|
||||||
import robaertschi.environmenttech.data.attachments.ETAttachments;
|
import xyz.robaertschi.environmenttech.data.attachments.ETAttachments;
|
||||||
import robaertschi.environmenttech.data.capabilities.ETCapabilities;
|
import xyz.robaertschi.environmenttech.data.capabilities.ETCapabilities;
|
||||||
import robaertschi.environmenttech.data.capabilities.EnvType;
|
import xyz.robaertschi.environmenttech.data.capabilities.EnvType;
|
||||||
|
|
||||||
import static net.minecraft.commands.Commands.*;
|
import static net.minecraft.commands.Commands.*;
|
||||||
|
|
@ -14,12 +14,12 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat;
|
package xyz.robaertschi.environmenttech.compat;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.fml.ModList;
|
import net.neoforged.fml.ModList;
|
||||||
|
|
||||||
import robaertschi.environmenttech.compat.top.TopCompat;
|
import xyz.robaertschi.environmenttech.compat.top.TopCompat;
|
||||||
|
|
||||||
public class ETCompat {
|
public class ETCompat {
|
||||||
public static void init(IEventBus modEventBus) {
|
public static void init(IEventBus modEventBus) {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.emi;
|
package xyz.robaertschi.environmenttech.compat.emi;
|
||||||
|
|
||||||
import dev.emi.emi.api.EmiEntrypoint;
|
import dev.emi.emi.api.EmiEntrypoint;
|
||||||
import dev.emi.emi.api.EmiPlugin;
|
import dev.emi.emi.api.EmiPlugin;
|
||||||
@ -27,11 +27,11 @@ import net.minecraft.resources.ResourceLocation;
|
|||||||
import net.minecraft.world.item.crafting.RecipeHolder;
|
import net.minecraft.world.item.crafting.RecipeHolder;
|
||||||
import net.minecraft.world.item.crafting.RecipeManager;
|
import net.minecraft.world.item.crafting.RecipeManager;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.data.recipes.ETRecipes;
|
import xyz.robaertschi.environmenttech.data.recipes.ETRecipes;
|
||||||
import robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
import xyz.robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
||||||
import robaertschi.environmenttech.level.item.ETItems;
|
import xyz.robaertschi.environmenttech.level.item.ETItems;
|
||||||
import robaertschi.environmenttech.menu.ETMenus;
|
import xyz.robaertschi.environmenttech.menu.ETMenus;
|
||||||
|
|
||||||
@EmiEntrypoint
|
@EmiEntrypoint
|
||||||
public class EmiCompatPlugin implements EmiPlugin {
|
public class EmiCompatPlugin implements EmiPlugin {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.emi;
|
package xyz.robaertschi.environmenttech.compat.emi;
|
||||||
|
|
||||||
import dev.emi.emi.api.recipe.BasicEmiRecipe;
|
import dev.emi.emi.api.recipe.BasicEmiRecipe;
|
||||||
import dev.emi.emi.api.render.EmiTexture;
|
import dev.emi.emi.api.render.EmiTexture;
|
||||||
@ -24,8 +24,8 @@ import dev.emi.emi.api.widget.WidgetHolder;
|
|||||||
|
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
|
|
||||||
import robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
import xyz.robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
||||||
import robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
import xyz.robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
||||||
|
|
||||||
public class EnvCollectorEmiRecipe extends BasicEmiRecipe {
|
public class EnvCollectorEmiRecipe extends BasicEmiRecipe {
|
||||||
private final EnvCollectorRecipe recipe;
|
private final EnvCollectorRecipe recipe;
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.emi;
|
package xyz.robaertschi.environmenttech.compat.emi;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ import org.apache.commons.compress.utils.Lists;
|
|||||||
|
|
||||||
import net.minecraft.world.inventory.Slot;
|
import net.minecraft.world.inventory.Slot;
|
||||||
|
|
||||||
import robaertschi.environmenttech.menu.EnvCollectorMenu;
|
import xyz.robaertschi.environmenttech.menu.EnvCollectorMenu;
|
||||||
|
|
||||||
public class EnvCollectorEmiRecipeHandler implements StandardRecipeHandler<EnvCollectorMenu> {
|
public class EnvCollectorEmiRecipeHandler implements StandardRecipeHandler<EnvCollectorMenu> {
|
||||||
@Override
|
@Override
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.jei;
|
package xyz.robaertschi.environmenttech.compat.jei;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -36,12 +36,12 @@ import net.minecraft.util.Mth;
|
|||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.crafting.RecipeHolder;
|
import net.minecraft.world.item.crafting.RecipeHolder;
|
||||||
|
|
||||||
import robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
import xyz.robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
||||||
import robaertschi.environmenttech.client.screen.EnvCollectorScreen;
|
import xyz.robaertschi.environmenttech.client.screen.EnvCollectorScreen;
|
||||||
import robaertschi.environmenttech.data.recipes.ETRecipes;
|
import xyz.robaertschi.environmenttech.data.recipes.ETRecipes;
|
||||||
import robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
import xyz.robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
import robaertschi.environmenttech.utils.MouseUtils;
|
import xyz.robaertschi.environmenttech.utils.MouseUtils;
|
||||||
|
|
||||||
@MethodsReturnNonnullByDefault
|
@MethodsReturnNonnullByDefault
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.jei;
|
package xyz.robaertschi.environmenttech.compat.jei;
|
||||||
|
|
||||||
import javax.annotation.ParametersAreNonnullByDefault;
|
import javax.annotation.ParametersAreNonnullByDefault;
|
||||||
|
|
||||||
@ -32,12 +32,12 @@ import net.minecraft.resources.ResourceLocation;
|
|||||||
import net.minecraft.world.entity.player.Inventory;
|
import net.minecraft.world.entity.player.Inventory;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.data.recipes.ETRecipes;
|
import xyz.robaertschi.environmenttech.data.recipes.ETRecipes;
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
import robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
||||||
import robaertschi.environmenttech.menu.ETMenus;
|
import xyz.robaertschi.environmenttech.menu.ETMenus;
|
||||||
import robaertschi.environmenttech.menu.EnvCollectorMenu;
|
import xyz.robaertschi.environmenttech.menu.EnvCollectorMenu;
|
||||||
|
|
||||||
@JeiPlugin
|
@JeiPlugin
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.top;
|
package xyz.robaertschi.environmenttech.compat.top;
|
||||||
|
|
||||||
import mcjty.theoneprobe.api.IProbeHitData;
|
import mcjty.theoneprobe.api.IProbeHitData;
|
||||||
import mcjty.theoneprobe.api.IProbeInfo;
|
import mcjty.theoneprobe.api.IProbeInfo;
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.compat.top;
|
package xyz.robaertschi.environmenttech.compat.top;
|
||||||
|
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
|
||||||
@ -30,12 +30,12 @@ import net.minecraft.world.entity.player.Player;
|
|||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.EnvironmentTech;
|
import xyz.robaertschi.environmenttech.EnvironmentTech;
|
||||||
import robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
import xyz.robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
||||||
import robaertschi.environmenttech.data.capabilities.ETCapabilities;
|
import xyz.robaertschi.environmenttech.data.capabilities.ETCapabilities;
|
||||||
import robaertschi.environmenttech.data.capabilities.EnvType;
|
import xyz.robaertschi.environmenttech.data.capabilities.EnvType;
|
||||||
import robaertschi.environmenttech.data.capabilities.IEnvStorage;
|
import xyz.robaertschi.environmenttech.data.capabilities.IEnvStorage;
|
||||||
|
|
||||||
public class TopCompat {
|
public class TopCompat {
|
||||||
public static void init(IEventBus modEventBus) {
|
public static void init(IEventBus modEventBus) {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.attachments;
|
package xyz.robaertschi.environmenttech.data.attachments;
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
@ -25,10 +25,11 @@ import net.neoforged.neoforge.registries.NeoForgeRegistries;
|
|||||||
|
|
||||||
import com.mojang.serialization.Codec;
|
import com.mojang.serialization.Codec;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETAttachments {
|
public class ETAttachments {
|
||||||
private static final DeferredRegister<AttachmentType<?>> ATTACHMENT_TYPES = DeferredRegister.create(NeoForgeRegistries.ATTACHMENT_TYPES, MODID);
|
private static final DeferredRegister<AttachmentType<?>> ATTACHMENT_TYPES = DeferredRegister.create(NeoForgeRegistries.ATTACHMENT_TYPES, ET.MODID);
|
||||||
|
|
||||||
public static final Supplier<AttachmentType<Long>> ENV = ATTACHMENT_TYPES.register(
|
public static final Supplier<AttachmentType<Long>> ENV = ATTACHMENT_TYPES.register(
|
||||||
"env", () -> AttachmentType.builder(() -> 0L).serialize(Codec.LONG).build()
|
"env", () -> AttachmentType.builder(() -> 0L).serialize(Codec.LONG).build()
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.capabilities;
|
package xyz.robaertschi.environmenttech.data.capabilities;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.capabilities;
|
package xyz.robaertschi.environmenttech.data.capabilities;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.capabilities.BlockCapability;
|
import net.neoforged.neoforge.capabilities.BlockCapability;
|
||||||
@ -23,8 +23,8 @@ import net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent;
|
|||||||
|
|
||||||
import net.minecraft.core.Direction;
|
import net.minecraft.core.Direction;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
import xyz.robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
||||||
|
|
||||||
public class ETCapabilities {
|
public class ETCapabilities {
|
||||||
public static final BlockCapability<IEnvStorage, EnvType> ENV_STORAGE_BLOCK =
|
public static final BlockCapability<IEnvStorage, EnvType> ENV_STORAGE_BLOCK =
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.capabilities;
|
package xyz.robaertschi.environmenttech.data.capabilities;
|
||||||
|
|
||||||
import net.minecraft.util.Mth;
|
import net.minecraft.util.Mth;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.capabilities;
|
package xyz.robaertschi.environmenttech.data.capabilities;
|
||||||
|
|
||||||
public enum EnvType {
|
public enum EnvType {
|
||||||
Chunk,
|
Chunk,
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.capabilities;
|
package xyz.robaertschi.environmenttech.data.capabilities;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ENV is pushed based, so you should not be able to extract ENV from anything.
|
* ENV is pushed based, so you should not be able to extract ENV from anything.
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.components;
|
package xyz.robaertschi.environmenttech.data.components;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredHolder;
|
import net.neoforged.neoforge.registries.DeferredHolder;
|
||||||
@ -22,10 +22,11 @@ import net.neoforged.neoforge.registries.DeferredRegister;
|
|||||||
|
|
||||||
import net.minecraft.core.component.DataComponentType;
|
import net.minecraft.core.component.DataComponentType;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETComponents {
|
public class ETComponents {
|
||||||
public static final DeferredRegister.DataComponents DATA_COMPONENTS = DeferredRegister.createDataComponents(MODID);
|
public static final DeferredRegister.DataComponents DATA_COMPONENTS = DeferredRegister.createDataComponents(ET.MODID);
|
||||||
|
|
||||||
public static final DeferredHolder<DataComponentType<?>, DataComponentType<FilledComponent>> FILLED_COMPONENT = DATA_COMPONENTS.registerComponentType("filled_component",
|
public static final DeferredHolder<DataComponentType<?>, DataComponentType<FilledComponent>> FILLED_COMPONENT = DATA_COMPONENTS.registerComponentType("filled_component",
|
||||||
filledComponentBuilder -> filledComponentBuilder.persistent(FilledComponent.CODEC).networkSynchronized(FilledComponent.STREAM_CODEC)
|
filledComponentBuilder -> filledComponentBuilder.persistent(FilledComponent.CODEC).networkSynchronized(FilledComponent.STREAM_CODEC)
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.components;
|
package xyz.robaertschi.environmenttech.data.components;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.recipes;
|
package xyz.robaertschi.environmenttech.data.recipes;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredHolder;
|
import net.neoforged.neoforge.registries.DeferredHolder;
|
||||||
@ -24,11 +24,12 @@ import net.minecraft.core.registries.Registries;
|
|||||||
import net.minecraft.world.item.crafting.RecipeSerializer;
|
import net.minecraft.world.item.crafting.RecipeSerializer;
|
||||||
import net.minecraft.world.item.crafting.RecipeType;
|
import net.minecraft.world.item.crafting.RecipeType;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETRecipes {
|
public class ETRecipes {
|
||||||
public static final DeferredRegister<RecipeType<?>> RECIPE_TYPES = DeferredRegister.create(Registries.RECIPE_TYPE, MODID);
|
public static final DeferredRegister<RecipeType<?>> RECIPE_TYPES = DeferredRegister.create(Registries.RECIPE_TYPE, ET.MODID);
|
||||||
public static final DeferredRegister<RecipeSerializer<?>> RECIPE_SERIALIZERS = DeferredRegister.create(Registries.RECIPE_SERIALIZER, MODID);
|
public static final DeferredRegister<RecipeSerializer<?>> RECIPE_SERIALIZERS = DeferredRegister.create(Registries.RECIPE_SERIALIZER, ET.MODID);
|
||||||
|
|
||||||
public static final DeferredHolder<RecipeType<?>, RecipeType<EnvCollectorRecipe>> ENV_COLLECTOR_RECIPE_TYPE = RECIPE_TYPES.register("env_collector", RecipeType::simple);
|
public static final DeferredHolder<RecipeType<?>, RecipeType<EnvCollectorRecipe>> ENV_COLLECTOR_RECIPE_TYPE = RECIPE_TYPES.register("env_collector", RecipeType::simple);
|
||||||
public static final DeferredHolder<RecipeSerializer<?>, RecipeSerializer<EnvCollectorRecipe>> ENV_COLLECTOR_RECIPE_SERIALIZER = RECIPE_SERIALIZERS.register("env_collector", EnvCollectorRecipeSerializer::new);
|
public static final DeferredHolder<RecipeSerializer<?>, RecipeSerializer<EnvCollectorRecipe>> ENV_COLLECTOR_RECIPE_SERIALIZER = RECIPE_SERIALIZERS.register("env_collector", EnvCollectorRecipeSerializer::new);
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.recipes;
|
package xyz.robaertschi.environmenttech.data.recipes;
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.data.recipes;
|
package xyz.robaertschi.environmenttech.data.recipes;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.datagen;
|
package xyz.robaertschi.environmenttech.datagen;
|
||||||
|
|
||||||
import net.neoforged.neoforge.client.model.generators.BlockStateProvider;
|
import net.neoforged.neoforge.client.model.generators.BlockStateProvider;
|
||||||
import net.neoforged.neoforge.client.model.generators.ModelFile;
|
import net.neoforged.neoforge.client.model.generators.ModelFile;
|
||||||
@ -22,9 +22,9 @@ import net.neoforged.neoforge.common.data.ExistingFileHelper;
|
|||||||
|
|
||||||
import net.minecraft.data.PackOutput;
|
import net.minecraft.data.PackOutput;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import static xyz.robaertschi.environmenttech.ET.MODID;
|
||||||
|
|
||||||
public class ETBlockStateProvider extends BlockStateProvider {
|
public class ETBlockStateProvider extends BlockStateProvider {
|
||||||
public ETBlockStateProvider(PackOutput output, ExistingFileHelper exFileHelper) {
|
public ETBlockStateProvider(PackOutput output, ExistingFileHelper exFileHelper) {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.datagen;
|
package xyz.robaertschi.environmenttech.datagen;
|
||||||
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
@ -27,9 +27,10 @@ import net.minecraft.core.HolderLookup;
|
|||||||
import net.minecraft.data.DataGenerator;
|
import net.minecraft.data.DataGenerator;
|
||||||
import net.minecraft.data.PackOutput;
|
import net.minecraft.data.PackOutput;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
@EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD, modid = MODID)
|
|
||||||
|
@EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD, modid = ET.MODID)
|
||||||
public class ETDatagen {
|
public class ETDatagen {
|
||||||
@SubscribeEvent()
|
@SubscribeEvent()
|
||||||
public static void gatherData(GatherDataEvent event) {
|
public static void gatherData(GatherDataEvent event) {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.datagen;
|
package xyz.robaertschi.environmenttech.datagen;
|
||||||
|
|
||||||
import net.neoforged.neoforge.client.model.generators.ItemModelBuilder;
|
import net.neoforged.neoforge.client.model.generators.ItemModelBuilder;
|
||||||
import net.neoforged.neoforge.client.model.generators.ItemModelProvider;
|
import net.neoforged.neoforge.client.model.generators.ItemModelProvider;
|
||||||
@ -24,12 +24,12 @@ import net.neoforged.neoforge.common.data.ExistingFileHelper;
|
|||||||
import net.minecraft.data.PackOutput;
|
import net.minecraft.data.PackOutput;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
import robaertschi.environmenttech.level.item.ETItems;
|
import xyz.robaertschi.environmenttech.level.item.ETItems;
|
||||||
import robaertschi.environmenttech.level.item.EnvDetectorItem;
|
import xyz.robaertschi.environmenttech.level.item.EnvDetectorItem;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import static xyz.robaertschi.environmenttech.ET.MODID;
|
||||||
|
|
||||||
public class ETItemModelProvider extends ItemModelProvider {
|
public class ETItemModelProvider extends ItemModelProvider {
|
||||||
public ETItemModelProvider(PackOutput output, ExistingFileHelper existingFileHelper) {
|
public ETItemModelProvider(PackOutput output, ExistingFileHelper existingFileHelper) {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.datagen;
|
package xyz.robaertschi.environmenttech.datagen;
|
||||||
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
@ -33,9 +33,9 @@ import net.minecraft.world.item.ItemStack;
|
|||||||
import net.minecraft.world.item.Items;
|
import net.minecraft.world.item.Items;
|
||||||
import net.minecraft.world.item.crafting.Ingredient;
|
import net.minecraft.world.item.crafting.Ingredient;
|
||||||
|
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
import xyz.robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
||||||
import robaertschi.environmenttech.level.item.ETItems;
|
import xyz.robaertschi.environmenttech.level.item.ETItems;
|
||||||
|
|
||||||
public class ETRecipeProvider extends RecipeProvider {
|
public class ETRecipeProvider extends RecipeProvider {
|
||||||
public ETRecipeProvider(PackOutput pOutput, CompletableFuture<HolderLookup.Provider> pRegistries) {
|
public ETRecipeProvider(PackOutput pOutput, CompletableFuture<HolderLookup.Provider> pRegistries) {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level;
|
package xyz.robaertschi.environmenttech.level;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ -25,9 +25,9 @@ import net.neoforged.neoforge.event.level.ChunkEvent;
|
|||||||
import net.minecraft.world.level.chunk.LevelChunk;
|
import net.minecraft.world.level.chunk.LevelChunk;
|
||||||
import net.minecraft.world.level.chunk.status.ChunkStatus;
|
import net.minecraft.world.level.chunk.status.ChunkStatus;
|
||||||
|
|
||||||
import robaertschi.environmenttech.Config;
|
import xyz.robaertschi.environmenttech.Config;
|
||||||
import robaertschi.environmenttech.ET;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.data.attachments.ETAttachments;
|
import xyz.robaertschi.environmenttech.data.attachments.ETAttachments;
|
||||||
|
|
||||||
@EventBusSubscriber(modid = ET.MODID)
|
@EventBusSubscriber(modid = ET.MODID)
|
||||||
@Slf4j(topic = "EnvironmentTech/ChunkData")
|
@Slf4j(topic = "EnvironmentTech/ChunkData")
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block;
|
package xyz.robaertschi.environmenttech.level.block;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredBlock;
|
import net.neoforged.neoforge.registries.DeferredBlock;
|
||||||
@ -22,11 +22,12 @@ import net.neoforged.neoforge.registries.DeferredRegister;
|
|||||||
|
|
||||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETBlocks {
|
public class ETBlocks {
|
||||||
// Create a Deferred Register to hold Blocks which will all be registered under the "environmenttech" namespace
|
// Create a Deferred Register to hold Blocks which will all be registered under the "environmenttech" namespace
|
||||||
public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(MODID);
|
public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(ET.MODID);
|
||||||
// Creates a new Block with the id "environmenttech:example_block", combining the namespace and path
|
// Creates a new Block with the id "environmenttech:example_block", combining the namespace and path
|
||||||
// public static final DeferredBlock<Block> EXAMPLE_BLOCK = BLOCKS.registerSimpleBlock("example_block", BlockBehaviour.Properties.of().mapColor(MapColor.STONE));
|
// public static final DeferredBlock<Block> EXAMPLE_BLOCK = BLOCKS.registerSimpleBlock("example_block", BlockBehaviour.Properties.of().mapColor(MapColor.STONE));
|
||||||
public static final DeferredBlock<EnvCollectorBlock> ENV_COLLECTOR_BLOCK = BLOCKS.registerBlock("env_collector", EnvCollectorBlock::new, BlockBehaviour.Properties.of());
|
public static final DeferredBlock<EnvCollectorBlock> ENV_COLLECTOR_BLOCK = BLOCKS.registerBlock("env_collector", EnvCollectorBlock::new, BlockBehaviour.Properties.of());
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block;
|
package xyz.robaertschi.environmenttech.level.block;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ import net.minecraft.world.phys.shapes.VoxelShape;
|
|||||||
|
|
||||||
import com.mojang.serialization.MapCodec;
|
import com.mojang.serialization.MapCodec;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
import xyz.robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
||||||
import robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
||||||
|
|
||||||
@ParametersAreNonnullByDefault()
|
@ParametersAreNonnullByDefault()
|
||||||
@Slf4j
|
@Slf4j
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block;
|
package xyz.robaertschi.environmenttech.level.block;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ -35,8 +35,8 @@ import net.minecraft.world.phys.shapes.VoxelShape;
|
|||||||
|
|
||||||
import com.mojang.serialization.MapCodec;
|
import com.mojang.serialization.MapCodec;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
import xyz.robaertschi.environmenttech.level.block.entity.ETBlockEntities;
|
||||||
import robaertschi.environmenttech.level.block.entity.EnvDistributorBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.EnvDistributorBlockEntity;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block;
|
package xyz.robaertschi.environmenttech.level.block;
|
||||||
|
|
||||||
import javax.annotation.ParametersAreNonnullByDefault;
|
import javax.annotation.ParametersAreNonnullByDefault;
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ import net.minecraft.world.level.block.state.StateDefinition;
|
|||||||
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
||||||
import net.minecraft.world.level.block.state.properties.DirectionProperty;
|
import net.minecraft.world.level.block.state.properties.DirectionProperty;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.entity.ITickableBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.ITickableBlockEntity;
|
||||||
|
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
@MethodsReturnNonnullByDefault
|
@MethodsReturnNonnullByDefault
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block.entity;
|
package xyz.robaertschi.environmenttech.level.block.entity;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredHolder;
|
import net.neoforged.neoforge.registries.DeferredHolder;
|
||||||
@ -23,13 +23,13 @@ import net.neoforged.neoforge.registries.DeferredRegister;
|
|||||||
import net.minecraft.core.registries.Registries;
|
import net.minecraft.core.registries.Registries;
|
||||||
import net.minecraft.world.level.block.entity.BlockEntityType;
|
import net.minecraft.world.level.block.entity.BlockEntityType;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
|
||||||
|
|
||||||
@SuppressWarnings("DataFlowIssue")
|
@SuppressWarnings("DataFlowIssue")
|
||||||
public class ETBlockEntities {
|
public class ETBlockEntities {
|
||||||
public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(Registries.BLOCK_ENTITY_TYPE, MODID);
|
public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(Registries.BLOCK_ENTITY_TYPE, ET.MODID);
|
||||||
|
|
||||||
@SuppressWarnings("DataFlowIssue")
|
@SuppressWarnings("DataFlowIssue")
|
||||||
public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<EnvCollectorBlockEntity>> ENV_COLLECTOR_BLOCK_ENTITY =
|
public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<EnvCollectorBlockEntity>> ENV_COLLECTOR_BLOCK_ENTITY =
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block.entity;
|
package xyz.robaertschi.environmenttech.level.block.entity;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
@ -50,16 +50,16 @@ import net.minecraft.world.level.block.entity.BlockEntity;
|
|||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||||
|
|
||||||
import robaertschi.environmenttech.compat.top.TOPInfoProvider;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.data.attachments.ETAttachments;
|
import xyz.robaertschi.environmenttech.compat.top.TOPInfoProvider;
|
||||||
import robaertschi.environmenttech.data.capabilities.AdaptedItemHandler;
|
import xyz.robaertschi.environmenttech.data.attachments.ETAttachments;
|
||||||
import robaertschi.environmenttech.data.capabilities.EnvStorage;
|
import xyz.robaertschi.environmenttech.data.capabilities.AdaptedItemHandler;
|
||||||
import robaertschi.environmenttech.data.capabilities.EnvType;
|
import xyz.robaertschi.environmenttech.data.capabilities.EnvStorage;
|
||||||
import robaertschi.environmenttech.data.recipes.ETRecipes;
|
import xyz.robaertschi.environmenttech.data.capabilities.EnvType;
|
||||||
import robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
import xyz.robaertschi.environmenttech.data.recipes.ETRecipes;
|
||||||
import robaertschi.environmenttech.menu.EnvCollectorMenu;
|
import xyz.robaertschi.environmenttech.data.recipes.EnvCollectorRecipe;
|
||||||
|
import xyz.robaertschi.environmenttech.menu.EnvCollectorMenu;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
|
||||||
|
|
||||||
|
|
||||||
public class EnvCollectorBlockEntity extends BlockEntity implements MenuProvider, ITickableBlockEntity, TOPInfoProvider {
|
public class EnvCollectorBlockEntity extends BlockEntity implements MenuProvider, ITickableBlockEntity, TOPInfoProvider {
|
||||||
@ -189,7 +189,7 @@ public class EnvCollectorBlockEntity extends BlockEntity implements MenuProvider
|
|||||||
@Override
|
@Override
|
||||||
protected void loadAdditional(@NotNull CompoundTag pTag, HolderLookup.@NotNull Provider provider) {
|
protected void loadAdditional(@NotNull CompoundTag pTag, HolderLookup.@NotNull Provider provider) {
|
||||||
super.loadAdditional(pTag, provider);
|
super.loadAdditional(pTag, provider);
|
||||||
CompoundTag modData = pTag.getCompound(MODID);
|
CompoundTag modData = pTag.getCompound(ET.MODID);
|
||||||
inputInventory.deserializeNBT(provider, modData.getCompound(INPUT_INVENTORY_KEY));
|
inputInventory.deserializeNBT(provider, modData.getCompound(INPUT_INVENTORY_KEY));
|
||||||
outputInventory.deserializeNBT(provider, modData.getCompound(OUTPUT_INVENTORY_KEY));
|
outputInventory.deserializeNBT(provider, modData.getCompound(OUTPUT_INVENTORY_KEY));
|
||||||
this.envStorage.setEnvStored(modData.getLong(ENV_KEY));
|
this.envStorage.setEnvStored(modData.getLong(ENV_KEY));
|
||||||
@ -206,7 +206,7 @@ public class EnvCollectorBlockEntity extends BlockEntity implements MenuProvider
|
|||||||
modData.putLong(ENV_KEY, envStorage.getEnvStored());
|
modData.putLong(ENV_KEY, envStorage.getEnvStored());
|
||||||
modData.putInt(PROGRESS_KEY, progress);
|
modData.putInt(PROGRESS_KEY, progress);
|
||||||
// modData.putInt(MAX_PROGRESS_KEY, maxProgress);
|
// modData.putInt(MAX_PROGRESS_KEY, maxProgress);
|
||||||
pTag.put(MODID, modData);
|
pTag.put(ET.MODID, modData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block.entity;
|
package xyz.robaertschi.environmenttech.level.block.entity;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
@ -35,11 +35,11 @@ import net.minecraft.world.level.block.entity.BlockEntity;
|
|||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||||
|
|
||||||
import robaertschi.environmenttech.data.attachments.ETAttachments;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
import robaertschi.environmenttech.data.capabilities.EnvStorage;
|
import xyz.robaertschi.environmenttech.data.attachments.ETAttachments;
|
||||||
import robaertschi.environmenttech.data.capabilities.EnvType;
|
import xyz.robaertschi.environmenttech.data.capabilities.EnvStorage;
|
||||||
|
import xyz.robaertschi.environmenttech.data.capabilities.EnvType;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
@ -77,7 +77,7 @@ public class EnvDistributorBlockEntity extends BlockEntity implements ITickableB
|
|||||||
@Override
|
@Override
|
||||||
protected void loadAdditional(@NotNull CompoundTag pTag, HolderLookup.@NotNull Provider pRegistries) {
|
protected void loadAdditional(@NotNull CompoundTag pTag, HolderLookup.@NotNull Provider pRegistries) {
|
||||||
super.loadAdditional(pTag, pRegistries);
|
super.loadAdditional(pTag, pRegistries);
|
||||||
CompoundTag modData = pTag.getCompound(MODID);
|
CompoundTag modData = pTag.getCompound(ET.MODID);
|
||||||
this.envStorage.setEnvStored(modData.getLong(ENV_TAG));
|
this.envStorage.setEnvStored(modData.getLong(ENV_TAG));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ public class EnvDistributorBlockEntity extends BlockEntity implements ITickableB
|
|||||||
super.saveAdditional(pTag, pRegistries);
|
super.saveAdditional(pTag, pRegistries);
|
||||||
CompoundTag modData = new CompoundTag();
|
CompoundTag modData = new CompoundTag();
|
||||||
modData.putLong(ENV_TAG, envStorage.getEnvStored());
|
modData.putLong(ENV_TAG, envStorage.getEnvStored());
|
||||||
pTag.put(MODID, modData);
|
pTag.put(ET.MODID, modData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block.entity;
|
package xyz.robaertschi.environmenttech.level.block.entity;
|
||||||
|
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block.entity.renderer;
|
package xyz.robaertschi.environmenttech.level.block.entity.renderer;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import javax.annotation.ParametersAreNonnullByDefault;
|
import javax.annotation.ParametersAreNonnullByDefault;
|
||||||
@ -37,9 +37,9 @@ import net.minecraft.world.phys.Vec3;
|
|||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
import com.mojang.math.Axis;
|
import com.mojang.math.Axis;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.EnvCollectorBlock;
|
import xyz.robaertschi.environmenttech.level.block.EnvCollectorBlock;
|
||||||
import robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
||||||
import robaertschi.environmenttech.level.particle.ETParticles;
|
import xyz.robaertschi.environmenttech.level.particle.ETParticles;
|
||||||
|
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
public class EnvCollectorRenderer implements BlockEntityRenderer<EnvCollectorBlockEntity> {
|
public class EnvCollectorRenderer implements BlockEntityRenderer<EnvCollectorBlockEntity> {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.block.entity.renderer;
|
package xyz.robaertschi.environmenttech.level.block.entity.renderer;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ -30,9 +30,9 @@ import net.minecraft.world.phys.Vec3;
|
|||||||
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
||||||
import robaertschi.environmenttech.client.RenderUtils;
|
import xyz.robaertschi.environmenttech.client.RenderUtils;
|
||||||
import robaertschi.environmenttech.level.block.entity.EnvDistributorBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.EnvDistributorBlockEntity;
|
||||||
import robaertschi.environmenttech.level.fluid.ETFluids;
|
import xyz.robaertschi.environmenttech.level.fluid.ETFluids;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.fluid;
|
package xyz.robaertschi.environmenttech.level.fluid;
|
||||||
|
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import javax.annotation.ParametersAreNonnullByDefault;
|
import javax.annotation.ParametersAreNonnullByDefault;
|
||||||
@ -29,16 +29,16 @@ import net.neoforged.neoforge.registries.NeoForgeRegistries;
|
|||||||
import net.minecraft.MethodsReturnNonnullByDefault;
|
import net.minecraft.MethodsReturnNonnullByDefault;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
||||||
import robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
import xyz.robaertschi.environmenttech.client.renderer.EnvStorageRenderer;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
|
||||||
|
|
||||||
public class ETFluidTypes {
|
public class ETFluidTypes {
|
||||||
|
|
||||||
public static final ResourceLocation WATER_STILL_RL = ResourceLocation.withDefaultNamespace("block/water_still");
|
public static final ResourceLocation WATER_STILL_RL = ResourceLocation.withDefaultNamespace("block/water_still");
|
||||||
public static final ResourceLocation WATER_FLOWING_RL = ResourceLocation.withDefaultNamespace("block/water_flow");
|
public static final ResourceLocation WATER_FLOWING_RL = ResourceLocation.withDefaultNamespace("block/water_flow");
|
||||||
|
|
||||||
public static final DeferredRegister<FluidType> FLUID_TYPES = DeferredRegister.create(NeoForgeRegistries.Keys.FLUID_TYPES, MODID);
|
public static final DeferredRegister<FluidType> FLUID_TYPES = DeferredRegister.create(NeoForgeRegistries.Keys.FLUID_TYPES, ET.MODID);
|
||||||
|
|
||||||
public static final DeferredHolder<FluidType, FluidType> ENV = FLUID_TYPES.register("env",
|
public static final DeferredHolder<FluidType, FluidType> ENV = FLUID_TYPES.register("env",
|
||||||
resourceLocation -> new FluidType(
|
resourceLocation -> new FluidType(
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.fluid;
|
package xyz.robaertschi.environmenttech.level.fluid;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.fluids.BaseFlowingFluid;
|
import net.neoforged.neoforge.fluids.BaseFlowingFluid;
|
||||||
@ -24,11 +24,12 @@ import net.neoforged.neoforge.registries.DeferredRegister;
|
|||||||
import net.minecraft.core.registries.BuiltInRegistries;
|
import net.minecraft.core.registries.BuiltInRegistries;
|
||||||
import net.minecraft.world.level.material.Fluid;
|
import net.minecraft.world.level.material.Fluid;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETFluids {
|
public class ETFluids {
|
||||||
|
|
||||||
public static final DeferredRegister<Fluid> FLUIDS = DeferredRegister.create(BuiltInRegistries.FLUID, MODID);
|
public static final DeferredRegister<Fluid> FLUIDS = DeferredRegister.create(BuiltInRegistries.FLUID, ET.MODID);
|
||||||
|
|
||||||
|
|
||||||
public static final DeferredHolder<Fluid, Fluid> ENV_FLOWING = FLUIDS.register("env_flowing", resourceLocation -> new BaseFlowingFluid.Flowing(ETFluids.ENV_PROPERTIES));
|
public static final DeferredHolder<Fluid, Fluid> ENV_FLOWING = FLUIDS.register("env_flowing", resourceLocation -> new BaseFlowingFluid.Flowing(ETFluids.ENV_PROPERTIES));
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.item;
|
package xyz.robaertschi.environmenttech.level.item;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredHolder;
|
import net.neoforged.neoforge.registries.DeferredHolder;
|
||||||
@ -30,15 +30,15 @@ import net.minecraft.world.item.CreativeModeTabs;
|
|||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
import net.minecraft.world.item.component.CustomModelData;
|
import net.minecraft.world.item.component.CustomModelData;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
|
||||||
|
|
||||||
public class ETItems {
|
public class ETItems {
|
||||||
public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MODID);
|
public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(ET.MODID);
|
||||||
|
|
||||||
|
|
||||||
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID);
|
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, ET.MODID);
|
||||||
|
|
||||||
|
|
||||||
// public static final DeferredItem<BlockItem> EXAMPLE_BLOCK_ITEM = ITEMS.registerSimpleBlockItem("example_block", EXAMPLE_BLOCK);
|
// public static final DeferredItem<BlockItem> EXAMPLE_BLOCK_ITEM = ITEMS.registerSimpleBlockItem("example_block", EXAMPLE_BLOCK);
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.item;
|
package xyz.robaertschi.environmenttech.level.item;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.annotation.ParametersAreNonnullByDefault;
|
import javax.annotation.ParametersAreNonnullByDefault;
|
||||||
@ -33,9 +33,9 @@ import net.minecraft.world.item.ItemStack;
|
|||||||
import net.minecraft.world.item.TooltipFlag;
|
import net.minecraft.world.item.TooltipFlag;
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
|
|
||||||
import robaertschi.environmenttech.data.attachments.ETAttachments;
|
import xyz.robaertschi.environmenttech.data.attachments.ETAttachments;
|
||||||
import robaertschi.environmenttech.data.components.ETComponents;
|
import xyz.robaertschi.environmenttech.data.components.ETComponents;
|
||||||
import robaertschi.environmenttech.data.components.FilledComponent;
|
import xyz.robaertschi.environmenttech.data.components.FilledComponent;
|
||||||
|
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
public class EnvDetectorItem extends Item {
|
public class EnvDetectorItem extends Item {
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.particle;
|
package xyz.robaertschi.environmenttech.level.particle;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredHolder;
|
import net.neoforged.neoforge.registries.DeferredHolder;
|
||||||
@ -24,10 +24,11 @@ import net.minecraft.core.particles.ParticleType;
|
|||||||
import net.minecraft.core.particles.SimpleParticleType;
|
import net.minecraft.core.particles.SimpleParticleType;
|
||||||
import net.minecraft.core.registries.BuiltInRegistries;
|
import net.minecraft.core.registries.BuiltInRegistries;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETParticles {
|
public class ETParticles {
|
||||||
public static final DeferredRegister<ParticleType<?>> PARTICLES = DeferredRegister.create(BuiltInRegistries.PARTICLE_TYPE, MODID);
|
public static final DeferredRegister<ParticleType<?>> PARTICLES = DeferredRegister.create(BuiltInRegistries.PARTICLE_TYPE, ET.MODID);
|
||||||
|
|
||||||
public static final DeferredHolder<ParticleType<?>, SimpleParticleType> ENV_PARTICLE = PARTICLES.register("env_particle",
|
public static final DeferredHolder<ParticleType<?>, SimpleParticleType> ENV_PARTICLE = PARTICLES.register("env_particle",
|
||||||
() -> new SimpleParticleType(false)
|
() -> new SimpleParticleType(false)
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.level.particle;
|
package xyz.robaertschi.environmenttech.level.particle;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.menu;
|
package xyz.robaertschi.environmenttech.menu;
|
||||||
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.common.extensions.IMenuTypeExtension;
|
import net.neoforged.neoforge.common.extensions.IMenuTypeExtension;
|
||||||
@ -24,10 +24,11 @@ import net.neoforged.neoforge.registries.DeferredRegister;
|
|||||||
import net.minecraft.core.registries.BuiltInRegistries;
|
import net.minecraft.core.registries.BuiltInRegistries;
|
||||||
import net.minecraft.world.inventory.MenuType;
|
import net.minecraft.world.inventory.MenuType;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.ET.MODID;
|
import xyz.robaertschi.environmenttech.ET;
|
||||||
|
|
||||||
|
|
||||||
public class ETMenus {
|
public class ETMenus {
|
||||||
public static final DeferredRegister<MenuType<?>> MENUS = DeferredRegister.create(BuiltInRegistries.MENU, MODID);
|
public static final DeferredRegister<MenuType<?>> MENUS = DeferredRegister.create(BuiltInRegistries.MENU, ET.MODID);
|
||||||
|
|
||||||
public static final DeferredHolder<MenuType<?>, MenuType<EnvCollectorMenu>> ENV_COLLECTOR_MENU = MENUS.register("env_collector", () ->
|
public static final DeferredHolder<MenuType<?>, MenuType<EnvCollectorMenu>> ENV_COLLECTOR_MENU = MENUS.register("env_collector", () ->
|
||||||
IMenuTypeExtension.create((windowId, inv, data) -> new EnvCollectorMenu(windowId, inv.player, data)));
|
IMenuTypeExtension.create((windowId, inv, data) -> new EnvCollectorMenu(windowId, inv.player, data)));
|
@ -14,7 +14,7 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package robaertschi.environmenttech.menu;
|
package xyz.robaertschi.environmenttech.menu;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
@ -28,11 +28,11 @@ import net.minecraft.world.entity.player.Player;
|
|||||||
import net.minecraft.world.inventory.*;
|
import net.minecraft.world.inventory.*;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
|
||||||
import robaertschi.environmenttech.level.block.ETBlocks;
|
import xyz.robaertschi.environmenttech.level.block.ETBlocks;
|
||||||
import robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
import xyz.robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity;
|
||||||
|
|
||||||
import static robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity.SLOT_COUNT;
|
import static xyz.robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity.SLOT_COUNT;
|
||||||
import static robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity.SLOT_INPUT;
|
import static xyz.robaertschi.environmenttech.level.block.entity.EnvCollectorBlockEntity.SLOT_INPUT;
|
||||||
|
|
||||||
@SuppressWarnings("SameParameterValue")
|
@SuppressWarnings("SameParameterValue")
|
||||||
public class EnvCollectorMenu extends AbstractContainerMenu {
|
public class EnvCollectorMenu extends AbstractContainerMenu {
|
@ -1,4 +1,4 @@
|
|||||||
package robaertschi.environmenttech.utils;
|
package xyz.robaertschi.environmenttech.utils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file is from <a href="https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19/">here</a>.
|
* This file is from <a href="https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19/">here</a>.
|
@ -1,8 +1,13 @@
|
|||||||
{
|
{
|
||||||
"item.environmenttech.env_detector": "ENV Detector",
|
"item.environmenttech.env_detector": "ENV Detector",
|
||||||
"item.environmenttech.environmental_essence": "Environmental Essence",
|
|
||||||
"item.environmenttech.env_detector.tooltip": "The ENV Detector is a handy device that shows you how much ENV is available in the current chunk. It can display from 0 to 16 ENV.",
|
"item.environmenttech.env_detector.tooltip": "The ENV Detector is a handy device that shows you how much ENV is available in the current chunk. It can display from 0 to 16 ENV.",
|
||||||
|
"item.environmenttech.environmental_essence": "Environmental Essence",
|
||||||
|
"item.environmenttech.glass_tank": "Glass Tank",
|
||||||
|
|
||||||
"block.environmenttech.env_collector": "ENV Collector",
|
"block.environmenttech.env_collector": "ENV Collector",
|
||||||
|
"block.environmenttech.env_distributor": "ENV Distributor",
|
||||||
|
|
||||||
|
"fluid_type.environmenttech.env": "ENV",
|
||||||
|
|
||||||
"itemGroup.environmenttech": "Environment Tech",
|
"itemGroup.environmenttech": "Environment Tech",
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user