This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated antimatter, started work on turbine rotors
- Loading branch information
Showing
19 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
Submodule AntimatterAPI
updated
6 files
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
46 changes: 46 additions & 0 deletions
46
common/src/main/java/muramasa/gregtech/items/ItemTurbineRotor.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,46 @@ | ||
package muramasa.gregtech.items; | ||
|
||
import com.google.common.collect.HashMultimap; | ||
import com.google.common.collect.Multimap; | ||
import muramasa.antimatter.material.Material; | ||
import muramasa.antimatter.tool.AntimatterItemTier; | ||
import muramasa.antimatter.tool.AntimatterToolType; | ||
import muramasa.antimatter.tool.MaterialTool; | ||
import net.minecraft.ChatFormatting; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.network.chat.TextComponent; | ||
import net.minecraft.network.chat.TranslatableComponent; | ||
import net.minecraft.world.entity.EquipmentSlot; | ||
import net.minecraft.world.entity.ai.attributes.Attribute; | ||
import net.minecraft.world.entity.ai.attributes.AttributeModifier; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.TooltipFlag; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class ItemTurbineRotor extends MaterialTool { | ||
public ItemTurbineRotor(String domain, AntimatterToolType type, AntimatterItemTier tier, Properties properties) { | ||
super(domain, type, tier, properties); | ||
} | ||
|
||
public int getEfficiency(){ | ||
return (int) (50.0F + (10.0F * (type.getBaseAttackDamage() + itemTier.getAttackDamageBonus()))); | ||
} | ||
|
||
@Override | ||
public void onGenericAddInformation(ItemStack stack, List<Component> tooltip, TooltipFlag flag) { | ||
super.onGenericAddInformation(stack, tooltip, flag); | ||
tooltip.add(new TranslatableComponent("gti.rotor.tooltip.efficiency", new TextComponent("" + getEfficiency()).withStyle(ChatFormatting.BLUE))); | ||
} | ||
|
||
@Override | ||
public ItemStack resolveStack(Material primary, Material secondary, long startingEnergy, long maxEnergy) { | ||
return new ItemStack(this); | ||
} | ||
|
||
@Override | ||
public Multimap<Attribute, AttributeModifier> getAttributeModifiers(EquipmentSlot slotType, ItemStack stack) { | ||
return HashMultimap.create(); | ||
} | ||
} |
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
Binary file added
BIN
+1.2 KB
.../src/main/resources/assets/antimatter/textures/item/tool/huge_turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 KB
...src/main/resources/assets/antimatter/textures/item/tool/large_turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
...n/resources/assets/antimatter/textures/item/tool/overlay/huge_turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
.../resources/assets/antimatter/textures/item/tool/overlay/large_turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
.../resources/assets/antimatter/textures/item/tool/overlay/small_turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
...c/main/resources/assets/antimatter/textures/item/tool/overlay/turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 KB
...src/main/resources/assets/antimatter/textures/item/tool/small_turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 KB
common/src/main/resources/assets/antimatter/textures/item/tool/turbine_rotor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.88 KB
...c/main/resources/assets/antimatter/textures/material/magnetic/turbine_blade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+252 Bytes
...esources/assets/antimatter/textures/material/magnetic/turbine_blade_overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.88 KB
common/src/main/resources/assets/antimatter/textures/material/turbine_blade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 Bytes
...rc/main/resources/assets/antimatter/textures/material/turbine_blade_overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.