From bf5eb276d49ea701defe4b6b2801150cb219b9b6 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 30 Nov 2024 08:59:59 +0000 Subject: [PATCH] chore: Apply Spotless --- .../api/blockentity/BlockEntityAccess.java | 1 + .../blockentity/BlockEntityCoordinator.java | 16 ++++++++++++ .../api/blockentity/KessokuBlockEntity.java | 3 ++- .../band/kessoku/lib/api/data/Sidinator.java | 19 ++++++++++++-- .../band/kessoku/lib/api/data/Storage.java | 15 +++++++++++ .../java/band/kessoku/lib/api/data/Timer.java | 15 +++++++++++ .../band/kessoku/lib/impl/ItemSidinator.java | 26 +++++++++++++++---- 7 files changed, 87 insertions(+), 8 deletions(-) diff --git a/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityAccess.java b/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityAccess.java index accaabf8..b34656f2 100644 --- a/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityAccess.java +++ b/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityAccess.java @@ -17,6 +17,7 @@ import band.kessoku.lib.api.data.DataAccess; import band.kessoku.lib.api.data.DataStructure; + import net.minecraft.block.entity.BlockEntity; @FunctionalInterface diff --git a/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityCoordinator.java b/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityCoordinator.java index 6916a789..bfc79925 100644 --- a/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityCoordinator.java +++ b/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/BlockEntityCoordinator.java @@ -1,6 +1,22 @@ +/* + * Copyright (c) 2024 KessokuTeaTime + * + * Licensed under the GNU Lesser General Pubic License, Version 3 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.gnu.org/licenses/lgpl-3.0.html + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package band.kessoku.lib.api.blockentity; import band.kessoku.lib.api.data.DataStructure; + import net.minecraft.block.entity.BlockEntity; import net.minecraft.block.entity.BlockEntityType; diff --git a/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/KessokuBlockEntity.java b/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/KessokuBlockEntity.java index e27dcd38..07ff59fb 100644 --- a/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/KessokuBlockEntity.java +++ b/blockentity/common/src/main/java/band/kessoku/lib/api/blockentity/KessokuBlockEntity.java @@ -17,10 +17,11 @@ import band.kessoku.lib.api.data.Storage; import band.kessoku.lib.impl.ItemSidinator; -import net.minecraft.block.entity.BlockEntityType; import org.slf4j.Marker; import org.slf4j.MarkerFactory; +import net.minecraft.block.entity.BlockEntityType; + public class KessokuBlockEntity { public static final String MOD_ID = "kessoku_blockentity"; public static final String NAME = "Kessoku Block Entity API"; diff --git a/data/common/src/main/java/band/kessoku/lib/api/data/Sidinator.java b/data/common/src/main/java/band/kessoku/lib/api/data/Sidinator.java index 5acea2ed..4b9c3671 100644 --- a/data/common/src/main/java/band/kessoku/lib/api/data/Sidinator.java +++ b/data/common/src/main/java/band/kessoku/lib/api/data/Sidinator.java @@ -1,9 +1,24 @@ +/* + * Copyright (c) 2024 KessokuTeaTime + * + * Licensed under the GNU Lesser General Pubic License, Version 3 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.gnu.org/licenses/lgpl-3.0.html + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package band.kessoku.lib.api.data; -import net.minecraft.util.math.Direction; - import java.util.List; +import net.minecraft.util.math.Direction; + public interface Sidinator extends DataStructure { List get(Direction direction); } diff --git a/data/common/src/main/java/band/kessoku/lib/api/data/Storage.java b/data/common/src/main/java/band/kessoku/lib/api/data/Storage.java index 5f5df6a0..aa455ea8 100644 --- a/data/common/src/main/java/band/kessoku/lib/api/data/Storage.java +++ b/data/common/src/main/java/band/kessoku/lib/api/data/Storage.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2024 KessokuTeaTime + * + * Licensed under the GNU Lesser General Pubic License, Version 3 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.gnu.org/licenses/lgpl-3.0.html + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package band.kessoku.lib.api.data; import net.minecraft.inventory.Inventory; diff --git a/data/common/src/main/java/band/kessoku/lib/api/data/Timer.java b/data/common/src/main/java/band/kessoku/lib/api/data/Timer.java index 36bac670..ebefc82f 100644 --- a/data/common/src/main/java/band/kessoku/lib/api/data/Timer.java +++ b/data/common/src/main/java/band/kessoku/lib/api/data/Timer.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2024 KessokuTeaTime + * + * Licensed under the GNU Lesser General Pubic License, Version 3 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.gnu.org/licenses/lgpl-3.0.html + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package band.kessoku.lib.api.data; public interface Timer extends DataStructure { diff --git a/data/common/src/main/java/band/kessoku/lib/impl/ItemSidinator.java b/data/common/src/main/java/band/kessoku/lib/impl/ItemSidinator.java index b9f9de7d..7ff6b69c 100644 --- a/data/common/src/main/java/band/kessoku/lib/impl/ItemSidinator.java +++ b/data/common/src/main/java/band/kessoku/lib/impl/ItemSidinator.java @@ -1,19 +1,35 @@ +/* + * Copyright (c) 2024 KessokuTeaTime + * + * Licensed under the GNU Lesser General Pubic License, Version 3 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.gnu.org/licenses/lgpl-3.0.html + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package band.kessoku.lib.impl; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.function.BiConsumer; + import band.kessoku.lib.api.data.Sidinator; import band.kessoku.lib.api.data.Storage; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; + import net.minecraft.item.ItemStack; import net.minecraft.network.RegistryByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.util.math.Direction; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.function.BiConsumer; - public class ItemSidinator implements Sidinator> { public static Codec CODEC = RecordCodecBuilder.create(instance -> instance.group( Codec.INT.listOf().fieldOf("down").forGetter((sidinator -> sidinator.get(Direction.DOWN))),