-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to holderLookup & fix compile errors
- Loading branch information
1 parent
b8aef3c
commit e7b7b1b
Showing
60 changed files
with
362 additions
and
430 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
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ jobs: | |
- name: Build | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
arguments: build test |
16 changes: 7 additions & 9 deletions
16
api/src/main/kotlin/com/possible_triangle/skygrid/api/SkygridTags.kt
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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package com.possible_triangle.skygrid.api | ||
|
||
import com.possible_triangle.skygrid.api.SkygridConstants.MOD_ID | ||
import net.minecraft.core.Registry | ||
import net.minecraft.core.registries.BuiltInRegistries | ||
import net.minecraft.core.registries.Registries | ||
import net.minecraft.resources.ResourceLocation | ||
import net.minecraft.tags.TagKey | ||
import net.minecraft.world.level.block.Block | ||
|
||
object SkygridTags { | ||
|
||
val AMETHYST_CLUSTERS = TagKey.create(BuiltInRegistries.BLOCK.key(), ResourceLocation(MOD_ID, "amethyst_clusters")) | ||
val LOOT_CONTAINERS = TagKey.create(BuiltInRegistries.BLOCK.key(), ResourceLocation(MOD_ID, "loot_containers")) | ||
val BARRELS = TagKey.create(BuiltInRegistries.BLOCK.key(), ResourceLocation(MOD_ID, "barrels")) | ||
val CHESTS = TagKey.create(BuiltInRegistries.BLOCK.key(), ResourceLocation(MOD_ID, "chests")) | ||
val GLASS_SILICA = TagKey.create(BuiltInRegistries.BLOCK.key(), ResourceLocation(MOD_ID, "silica_glass")) | ||
val FOREIGN_ORES = TagKey.create(BuiltInRegistries.BLOCK.key(), ResourceLocation(MOD_ID, "foreign_ores")) | ||
val AMETHYST_CLUSTERS = TagKey.create(Registries.BLOCK, ResourceLocation(MOD_ID, "amethyst_clusters")) | ||
val LOOT_CONTAINERS = TagKey.create(Registries.BLOCK, ResourceLocation(MOD_ID, "loot_containers")) | ||
val BARRELS = TagKey.create(Registries.BLOCK, ResourceLocation(MOD_ID, "barrels")) | ||
val CHESTS = TagKey.create(Registries.BLOCK, ResourceLocation(MOD_ID, "chests")) | ||
val GLASS_SILICA = TagKey.create(Registries.BLOCK, ResourceLocation(MOD_ID, "silica_glass")) | ||
val FOREIGN_ORES = TagKey.create(Registries.BLOCK, ResourceLocation(MOD_ID, "foreign_ores")) | ||
|
||
} |
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
4 changes: 2 additions & 2 deletions
4
api/src/main/kotlin/com/possible_triangle/skygrid/api/xml/elements/Filter.kt
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package com.possible_triangle.skygrid.api.xml.elements | ||
|
||
import kotlinx.serialization.Serializable | ||
import net.minecraft.core.Registry | ||
import net.minecraft.core.HolderLookup | ||
import net.minecraft.world.level.block.Block | ||
|
||
@Serializable | ||
abstract class Filter { | ||
|
||
abstract fun test(block: Block, blocks: Registry<Block>): Boolean | ||
abstract fun test(block: Block, blocks: HolderLookup.RegistryLookup<Block>): Boolean | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
api/src/main/kotlin/com/possible_triangle/skygrid/api/xml/elements/FilterOperator.kt
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package com.possible_triangle.skygrid.api.xml.elements | ||
|
||
import kotlinx.serialization.Serializable | ||
import net.minecraft.core.Registry | ||
import net.minecraft.core.HolderLookup | ||
import net.minecraft.world.level.block.Block | ||
|
||
@Serializable | ||
abstract class FilterOperator { | ||
|
||
abstract fun test(block: Block, blocks: Registry<Block>): Boolean | ||
abstract fun test(block: Block, blocks: HolderLookup.RegistryLookup<Block>): Boolean | ||
|
||
} |
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
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
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
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
Oops, something went wrong.