mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-26 04:33:11 +00:00
Bump to 1.16.5
I don't think anyone still uses 1.16.4, so no point worrying about it. Closes #808
This commit is contained in:
parent
8b9735d72e
commit
5eec7d9172
@ -136,10 +136,10 @@ dependencies {
|
|||||||
|
|
||||||
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
||||||
|
|
||||||
compileOnly fg.deobf("mezz.jei:jei-1.16.4:7.6.0.58:api")
|
compileOnly fg.deobf("mezz.jei:jei-1.16.5:7.7.0.104:api")
|
||||||
compileOnly fg.deobf("com.blamejared.crafttweaker:CraftTweaker-1.16.4:7.0.0.63")
|
compileOnly fg.deobf("com.blamejared.crafttweaker:CraftTweaker-1.16.5:7.1.0.313")
|
||||||
|
|
||||||
runtimeOnly fg.deobf("mezz.jei:jei-1.16.4:7.6.0.58")
|
runtimeOnly fg.deobf("mezz.jei:jei-1.16.5:7.7.0.104")
|
||||||
|
|
||||||
shade 'org.squiddev:Cobalt:0.5.2-SNAPSHOT'
|
shade 'org.squiddev:Cobalt:0.5.2-SNAPSHOT'
|
||||||
|
|
||||||
@ -458,9 +458,6 @@ curseforge {
|
|||||||
relations {
|
relations {
|
||||||
incompatible "computercraft"
|
incompatible "computercraft"
|
||||||
}
|
}
|
||||||
|
|
||||||
addGameVersion '1.16.4'
|
|
||||||
addGameVersion '1.16.5'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
mod_version=1.96.0
|
mod_version=1.96.0
|
||||||
|
|
||||||
# Minecraft properties (update mods.toml when changing)
|
# Minecraft properties (update mods.toml when changing)
|
||||||
mc_version=1.16.4
|
mc_version=1.16.5
|
||||||
forge_version=35.1.16
|
forge_version=36.1.0
|
||||||
|
# NO SERIOUSLY, UPDATE mods.toml WHEN CHANGING
|
||||||
|
@ -22,7 +22,7 @@ import mezz.jei.api.IModPlugin;
|
|||||||
import mezz.jei.api.JeiPlugin;
|
import mezz.jei.api.JeiPlugin;
|
||||||
import mezz.jei.api.constants.VanillaRecipeCategoryUid;
|
import mezz.jei.api.constants.VanillaRecipeCategoryUid;
|
||||||
import mezz.jei.api.constants.VanillaTypes;
|
import mezz.jei.api.constants.VanillaTypes;
|
||||||
import mezz.jei.api.ingredients.subtypes.ISubtypeInterpreter;
|
import mezz.jei.api.ingredients.subtypes.IIngredientSubtypeInterpreter;
|
||||||
import mezz.jei.api.recipe.IRecipeManager;
|
import mezz.jei.api.recipe.IRecipeManager;
|
||||||
import mezz.jei.api.recipe.category.IRecipeCategory;
|
import mezz.jei.api.recipe.category.IRecipeCategory;
|
||||||
import mezz.jei.api.registration.IAdvancedRegistration;
|
import mezz.jei.api.registration.IAdvancedRegistration;
|
||||||
@ -90,13 +90,13 @@ public class JEIComputerCraft implements IModPlugin
|
|||||||
runtime.getIngredientManager().addIngredientsAtRuntime( VanillaTypes.ITEM, upgradeItems );
|
runtime.getIngredientManager().addIngredientsAtRuntime( VanillaTypes.ITEM, upgradeItems );
|
||||||
|
|
||||||
// Hide all upgrade recipes
|
// Hide all upgrade recipes
|
||||||
IRecipeCategory<?> category = (IRecipeCategory<?>) registry.getRecipeCategory( VanillaRecipeCategoryUid.CRAFTING );
|
IRecipeCategory<?> category = registry.getRecipeCategory( VanillaRecipeCategoryUid.CRAFTING );
|
||||||
if( category != null )
|
if( category != null )
|
||||||
{
|
{
|
||||||
for( Object wrapper : registry.getRecipes( category ) )
|
for( Object wrapper : registry.getRecipes( category ) )
|
||||||
{
|
{
|
||||||
if( !(wrapper instanceof IRecipe) ) continue;
|
if( !(wrapper instanceof IRecipe) ) continue;
|
||||||
ResourceLocation id = ((IRecipe) wrapper).getId();
|
ResourceLocation id = ((IRecipe<?>) wrapper).getId();
|
||||||
if( !id.getNamespace().equals( ComputerCraft.MOD_ID ) ) continue;
|
if( !id.getNamespace().equals( ComputerCraft.MOD_ID ) ) continue;
|
||||||
|
|
||||||
String path = id.getPath();
|
String path = id.getPath();
|
||||||
@ -112,9 +112,9 @@ public class JEIComputerCraft implements IModPlugin
|
|||||||
/**
|
/**
|
||||||
* Distinguishes turtles by upgrades and family.
|
* Distinguishes turtles by upgrades and family.
|
||||||
*/
|
*/
|
||||||
private static final ISubtypeInterpreter turtleSubtype = stack -> {
|
private static final IIngredientSubtypeInterpreter<ItemStack> turtleSubtype = ( stack, ctx ) -> {
|
||||||
Item item = stack.getItem();
|
Item item = stack.getItem();
|
||||||
if( !(item instanceof ITurtleItem) ) return ISubtypeInterpreter.NONE;
|
if( !(item instanceof ITurtleItem) ) return IIngredientSubtypeInterpreter.NONE;
|
||||||
|
|
||||||
ITurtleItem turtle = (ITurtleItem) item;
|
ITurtleItem turtle = (ITurtleItem) item;
|
||||||
StringBuilder name = new StringBuilder( "turtle:" );
|
StringBuilder name = new StringBuilder( "turtle:" );
|
||||||
@ -132,9 +132,9 @@ public class JEIComputerCraft implements IModPlugin
|
|||||||
/**
|
/**
|
||||||
* Distinguishes pocket computers by upgrade and family.
|
* Distinguishes pocket computers by upgrade and family.
|
||||||
*/
|
*/
|
||||||
private static final ISubtypeInterpreter pocketSubtype = stack -> {
|
private static final IIngredientSubtypeInterpreter<ItemStack> pocketSubtype = ( stack, ctx ) -> {
|
||||||
Item item = stack.getItem();
|
Item item = stack.getItem();
|
||||||
if( !(item instanceof ItemPocketComputer) ) return ISubtypeInterpreter.NONE;
|
if( !(item instanceof ItemPocketComputer) ) return IIngredientSubtypeInterpreter.NONE;
|
||||||
|
|
||||||
StringBuilder name = new StringBuilder( "pocket:" );
|
StringBuilder name = new StringBuilder( "pocket:" );
|
||||||
|
|
||||||
@ -148,13 +148,13 @@ public class JEIComputerCraft implements IModPlugin
|
|||||||
/**
|
/**
|
||||||
* Distinguishes disks by colour.
|
* Distinguishes disks by colour.
|
||||||
*/
|
*/
|
||||||
private static final ISubtypeInterpreter diskSubtype = stack -> {
|
private static final IIngredientSubtypeInterpreter<ItemStack> diskSubtype = ( stack, ctx ) -> {
|
||||||
Item item = stack.getItem();
|
Item item = stack.getItem();
|
||||||
if( !(item instanceof ItemDisk) ) return ISubtypeInterpreter.NONE;
|
if( !(item instanceof ItemDisk) ) return IIngredientSubtypeInterpreter.NONE;
|
||||||
|
|
||||||
ItemDisk disk = (ItemDisk) item;
|
ItemDisk disk = (ItemDisk) item;
|
||||||
|
|
||||||
int colour = disk.getColour( stack );
|
int colour = disk.getColour( stack );
|
||||||
return colour == -1 ? ISubtypeInterpreter.NONE : String.format( "%06x", colour );
|
return colour == -1 ? IIngredientSubtypeInterpreter.NONE : String.format( "%06x", colour );
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
modLoader="javafml"
|
modLoader="javafml"
|
||||||
loaderVersion="[35,37)"
|
loaderVersion="[36,37)"
|
||||||
|
|
||||||
issueTrackerURL="https://github.com/SquidDev-CC/CC-Tweaked/issues"
|
issueTrackerURL="https://github.com/SquidDev-CC/CC-Tweaked/issues"
|
||||||
displayURL="https://github.com/SquidDev-CC/CC-Tweaked"
|
displayURL="https://github.com/SquidDev-CC/CC-Tweaked"
|
||||||
@ -20,6 +20,6 @@ CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles a
|
|||||||
[[dependencies.computercraft]]
|
[[dependencies.computercraft]]
|
||||||
modId="forge"
|
modId="forge"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
versionRange="[35.1.16,37)"
|
versionRange="[36.1.0,37)"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user