mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 15:33:03 +00:00
Added landmine
Added the landmine to TConstruct source
This commit is contained in:
1 parent
a80fcbce86
commit
81afd9c00e
34 files changed
+2759
-2
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package tconstruct.landmine.logic.behavior;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BehaviorPreventExplode extends Behavior{
|
||||
|
||||
@Override
|
||||
public void executeLogic(World par1World, int par2, int par3, int par4, ItemStack par5ItemStack, Entity triggerer, boolean willBlockBeRemoved) {}
|
||||
|
||||
@Override
|
||||
public boolean isBehaviorExchangableWithOffensive(ItemStack par1ItemStack){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesBehaviorPreventRemovalOfBlock(ItemStack par1ItemStack){
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldItemBeRemoved(ItemStack par1ItemStack, boolean willBlockBeRemoved){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOffensive(ItemStack par1ItemStack){
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user