This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
780abb6
commit 41531dc
Showing
26 changed files
with
119 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
plugins { | ||
alias(neoforged.plugins.vanilla).apply(false) | ||
} | ||
|
||
subprojects { | ||
afterEvaluate { | ||
extensions.configure<JavaPluginExtension> { | ||
// toolchain.vendor.set(JvmVendorSpec) | ||
toolchain.languageVersion.set(JavaLanguageVersion.of(21)) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
core-api/src/main/java/dev/compactmods/machines/api/item/component/MachineComponents.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package dev.compactmods.machines.api.item.component; | ||
|
||
import com.mojang.serialization.Codec; | ||
import net.minecraft.core.component.DataComponentType; | ||
import net.minecraft.network.codec.ByteBufCodecs; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
import java.util.function.UnaryOperator; | ||
|
||
public interface MachineComponents { | ||
|
||
/** | ||
* Only on bound room items - given by a crafting process or when a bound machine block is broken | ||
*/ | ||
UnaryOperator<DataComponentType.Builder<String>> BOUND_ROOM_CODE = (builder) -> builder | ||
.persistent(Codec.STRING) | ||
.networkSynchronized(ByteBufCodecs.STRING_UTF8); | ||
|
||
/** | ||
* Only on new room items - IUnboundMachineItem | ||
*/ | ||
UnaryOperator<DataComponentType.Builder<ResourceLocation>> NEW_ROOM_TEMPLATE = (builder) -> builder | ||
.persistent(ResourceLocation.CODEC) | ||
.networkSynchronized(ResourceLocation.STREAM_CODEC); | ||
|
||
UnaryOperator<DataComponentType.Builder<Integer>> MACHINE_COLOR = (builder) -> builder | ||
.persistent(Codec.INT) | ||
.networkSynchronized(ByteBufCodecs.INT); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
...api/src/main/java/dev/compactmods/machines/api/machine/item/IBoundCompactMachineItem.java
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
core-api/src/main/java/dev/compactmods/machines/api/machine/item/ICompactMachineItem.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...i/src/main/java/dev/compactmods/machines/api/machine/item/IUnboundCompactMachineItem.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
core/src/main/java/dev/compactmods/machines/client/level/EmptyLevelEntityGetter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.