-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # src/main/java/gregtech/common/metatileentities/MetaTileEntities.java
- Loading branch information
Showing
137 changed files
with
4,951 additions
and
2,093 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/*------------------------------------------------------------------------------ | ||
Copyright (c) CovertJaguar, 2011-2020 | ||
This work (the API) is licensed under the "MIT" License, | ||
see LICENSE.md for details. | ||
-----------------------------------------------------------------------------*/ | ||
package mods.railcraft.api.items; | ||
|
||
import net.minecraft.entity.item.EntityMinecart; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.EnumHand; | ||
import net.minecraft.util.math.BlockPos; | ||
|
||
/** | ||
* @author CovertJaguar <http://www.railcraft.info> | ||
*/ | ||
public interface IToolCrowbar { | ||
String ORE_TAG = "toolCrowbar"; | ||
|
||
/** | ||
* Controls non-rotational interactions with blocks. Crowbar specific stuff. | ||
* <p/> | ||
* Rotational interaction is handled by the Block.rotateBlock() function, | ||
* which should be called from the Item.onUseFirst() function of your tool. | ||
* | ||
* @param player the player | ||
* @param crowbar the crowbar | ||
* @param pos the block @return true if can whack a block | ||
*/ | ||
boolean canWhack(EntityPlayer player, EnumHand hand, ItemStack crowbar, BlockPos pos); | ||
|
||
/** | ||
* Callback to do damage to the item. | ||
* | ||
* @param player the player | ||
* @param crowbar the crowbar | ||
* @param pos the block | ||
*/ | ||
void onWhack(EntityPlayer player, EnumHand hand, ItemStack crowbar, BlockPos pos); | ||
|
||
/** | ||
* Controls whether you can link a cart. | ||
* | ||
* @param player the player | ||
* @param crowbar the crowbar | ||
* @param cart the cart @return true if can link a cart | ||
*/ | ||
boolean canLink(EntityPlayer player, EnumHand hand, ItemStack crowbar, EntityMinecart cart); | ||
|
||
/** | ||
* Callback to do damage. | ||
* | ||
* @param player the player | ||
* @param crowbar the crowbar | ||
* @param cart the cart | ||
*/ | ||
void onLink(EntityPlayer player, EnumHand hand, ItemStack crowbar, EntityMinecart cart); | ||
|
||
/** | ||
* Controls whether you can boost a cart. | ||
* | ||
* @param player the player | ||
* @param crowbar the crowbar | ||
* @param cart the cart @return true if can boost a cart | ||
*/ | ||
boolean canBoost(EntityPlayer player, EnumHand hand, ItemStack crowbar, EntityMinecart cart); | ||
|
||
/** | ||
* Callback to do damage, boosting a cart usually does more damage than | ||
* normal usage. | ||
* | ||
* @param player the player | ||
* @param crowbar the crowbar | ||
* @param cart the cart | ||
*/ | ||
void onBoost(EntityPlayer player, EnumHand hand, ItemStack crowbar, EntityMinecart cart); | ||
} |
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,11 @@ | ||
package mrtjp.projectred.api; | ||
|
||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
|
||
public interface IScrewdriver { | ||
|
||
boolean canUse(EntityPlayer player, ItemStack stack); | ||
|
||
void damageScrewdriver(EntityPlayer player, ItemStack stack); // Damage the item on usage | ||
} |
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.