-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
11,551 additions
and
150 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
263 changes: 261 additions & 2 deletions
263
src/main/java/huige233/transcend/asm/ClassTransformer.java
Large diffs are not rendered by default.
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
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
38 changes: 38 additions & 0 deletions
38
src/main/java/huige233/transcend/compat/slash/specialeffects/SEDataLock.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,38 @@ | ||
package huige233.transcend.compat.slash.specialeffects; | ||
|
||
import mods.flammpfeil.slashblade.item.ItemSlashBlade; | ||
import mods.flammpfeil.slashblade.specialeffect.IRemovable; | ||
import mods.flammpfeil.slashblade.specialeffect.ISpecialEffect; | ||
import mods.flammpfeil.slashblade.util.SlashBladeHooks; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public class SEDataLock implements ISpecialEffect, IRemovable { | ||
private static final String EffectKey = "SEDataLock"; | ||
|
||
public int getDefaultRequiredLevel(){ | ||
return 0; | ||
} | ||
|
||
public boolean canCopy(ItemStack stack){ | ||
return false; | ||
} | ||
|
||
public boolean canRemoval(ItemStack stack){ | ||
return false; | ||
} | ||
|
||
public String getEffectKey(){ | ||
return EffectKey; | ||
} | ||
|
||
public void register(){ | ||
SlashBladeHooks.EventBus.register(this); | ||
} | ||
|
||
private boolean useBlade(ItemSlashBlade.ComboSequence sequence){ | ||
if(sequence.useScabbard) return false; | ||
if(sequence == ItemSlashBlade.ComboSequence.None) return false; | ||
if(sequence == ItemSlashBlade.ComboSequence.Noutou) return false; | ||
return true; | ||
} | ||
} |
Oops, something went wrong.