Optimize Images & Workflow (#46)
No files matched your search
@@ -0,0 +1,17 @@
|
||||
name: Optimize images
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main, release/** ]
|
||||
paths:
|
||||
- "**/*.png"
|
||||
|
||||
push:
|
||||
branches: [ master, main, release/** ]
|
||||
paths:
|
||||
- "**/*.png"
|
||||
|
||||
jobs:
|
||||
optimize-images:
|
||||
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
|
||||
secrets: inherit
|
||||
@@ -3,9 +3,11 @@
|
||||
dependencies {
|
||||
compileOnly('com.github.GTNewHorizons:ForestryMC:4.10.1:dev')
|
||||
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
||||
api('com.github.GTNewHorizons:Baubles:1.0.4:dev')
|
||||
api('com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev')
|
||||
|
||||
runtimeOnly('com.github.GTNewHorizons:TCNEIAdditions:1.4.2:dev')
|
||||
runtimeOnly('com.github.GTNewHorizons:TCNEIAdditions:1.4.8:dev') {
|
||||
exclude module: 'Baubles'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ modId = thaumicinsurgence
|
||||
modGroup = thaumicinsurgence
|
||||
|
||||
# Whether to use modGroup as the maven publishing group.
|
||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||
# When false, com.github.GTNewHorizons is used.
|
||||
useModGroupForPublishing = false
|
||||
|
||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||
@@ -96,7 +96,9 @@ usesMixinDebug = false
|
||||
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
||||
mixinPlugin =
|
||||
|
||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
||||
# Specify the package that contains all of your Mixins. The package must exist or
|
||||
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
|
||||
# it must match with this or the build will fail.
|
||||
mixinsPackage =
|
||||
|
||||
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
||||
@@ -151,7 +153,7 @@ modrinthProjectId =
|
||||
# type can be one of [project, version],
|
||||
# and the name is the Modrinth project or version slug/id of the other mod.
|
||||
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
||||
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
|
||||
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||
modrinthRelations =
|
||||
|
||||
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
||||
@@ -172,6 +174,12 @@ curseForgeRelations =
|
||||
# projects. New projects should not use this parameter.
|
||||
# customArchiveBaseName =
|
||||
|
||||
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
|
||||
# runClientWorkingDirectory = run/client
|
||||
|
||||
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
|
||||
# runServerWorkingDirectory = run/server
|
||||
|
||||
# Optional parameter to have the build automatically fail if an illegal version is used.
|
||||
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
||||
# The check is ONLY performed if the version is a git tag.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.30'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.51'
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import baubles.common.items.ItemRing;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import thaumicinsurgence.main.utils.TabThaumicInsurgence;
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
package thaumicinsurgence.item.baubles;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import baubles.api.BaubleType;
|
||||
import baubles.api.IBauble;
|
||||
import baubles.common.container.InventoryBaubles;
|
||||
import baubles.common.lib.PlayerHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class ItemRing extends Item implements IBauble {
|
||||
|
||||
public ItemRing() {
|
||||
super();
|
||||
this.setMaxStackSize(1);
|
||||
this.setHasSubtypes(true);
|
||||
this.setMaxDamage(0);
|
||||
setCreativeTab(CreativeTabs.tabTools);
|
||||
}
|
||||
|
||||
public IIcon icon;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void registerIcons(IIconRegister ir) {
|
||||
icon = ir.registerIcon("baubles:ring");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
return icon;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
|
||||
par3List.add(new ItemStack(this, 1, 0));
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaubleType getBaubleType(ItemStack itemstack) {
|
||||
return BaubleType.RING;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
|
||||
if (!par2World.isRemote) {
|
||||
InventoryBaubles baubles = PlayerHandler.getPlayerBaubles(par3EntityPlayer);
|
||||
for (int i = 0; i < baubles.getSizeInventory(); i++)
|
||||
if (baubles.getStackInSlot(i) == null && baubles.isItemValidForSlot(i, par1ItemStack)) {
|
||||
baubles.setInventorySlotContents(i, par1ItemStack.copy());
|
||||
if (!par3EntityPlayer.capabilities.isCreativeMode) {
|
||||
par3EntityPlayer.inventory
|
||||
.setInventorySlotContents(par3EntityPlayer.inventory.currentItem, null);
|
||||
}
|
||||
onEquipped(par1ItemStack, par3EntityPlayer);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return par1ItemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWornTick(ItemStack itemstack, EntityLivingBase player) {
|
||||
if (itemstack.getItemDamage() == 0 && !player.isPotionActive(Potion.digSpeed)) {
|
||||
player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 40, 0, true));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasEffect(ItemStack par1ItemStack, int a) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack par1ItemStack) {
|
||||
return EnumRarity.rare;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack par1ItemStack) {
|
||||
return super.getUnlocalizedName() + "." + par1ItemStack.getItemDamage();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEquipped(ItemStack itemstack, EntityLivingBase player) {
|
||||
if (!player.worldObj.isRemote) {
|
||||
player.worldObj.playSoundAtEntity(player, "random.orb", 0.1F, 1.3f);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUnequipped(ItemStack itemstack, EntityLivingBase player) {}
|
||||
|
||||
@Override
|
||||
public boolean canEquip(ItemStack itemstack, EntityLivingBase player) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canUnequip(ItemStack itemstack, EntityLivingBase player) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,6 @@ package thaumicinsurgence.item.baubles;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import baubles.common.items.ItemRing;
|
||||
import thaumcraft.api.IVisDiscountGear;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 693 B |
|
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 253 B |
|
Before Width: | Height: | Size: 487 B After Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 812 B After Width: | Height: | Size: 805 B |
|
Before Width: | Height: | Size: 969 B After Width: | Height: | Size: 960 B |
|
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 960 B |
|
Before Width: | Height: | Size: 826 B After Width: | Height: | Size: 730 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1014 B After Width: | Height: | Size: 802 B |
|
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 785 B |
|
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 773 B |
|
Before Width: | Height: | Size: 972 B After Width: | Height: | Size: 785 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1023 B |
|
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 972 B After Width: | Height: | Size: 789 B |
|
Before Width: | Height: | Size: 946 B After Width: | Height: | Size: 790 B |
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 788 B |
|
Before Width: | Height: | Size: 971 B After Width: | Height: | Size: 781 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 814 B |
|
Before Width: | Height: | Size: 1006 B After Width: | Height: | Size: 783 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 975 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 972 B |
|
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 355 B |
|
Before Width: | Height: | Size: 950 B After Width: | Height: | Size: 882 B |
|
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 452 B |
|
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 538 B |
|
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 562 B |
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 334 B |
|
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 345 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 906 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 918 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 829 B |
|
Before Width: | Height: | Size: 771 B After Width: | Height: | Size: 688 B |
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 723 B |
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 202 B |
|
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 842 B |
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 818 B |
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 948 B After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 834 B After Width: | Height: | Size: 813 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 828 B |
|
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 375 B |
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 262 B |
|
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 719 B |
|
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 222 B |
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 927 B After Width: | Height: | Size: 779 B |
|
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 565 B |
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 274 B |
|
Before Width: | Height: | Size: 930 B After Width: | Height: | Size: 769 B |
|
Before Width: | Height: | Size: 627 B After Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 735 B After Width: | Height: | Size: 635 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 231 KiB After Width: | Height: | Size: 223 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 131 B |
|
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 147 B |
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 1016 B After Width: | Height: | Size: 904 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 137 B |
|
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 138 B |
|
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 142 B |
|
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 139 B |
|
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 144 B |
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 202 B |