-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6cc1e39
commit e44ab16
Showing
4 changed files
with
14 additions
and
34 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
20 changes: 0 additions & 20 deletions
20
src/main/java/heyblack/flexiblepcb/mixin/rule/fixUnstableOnGroundTag/EntityMixin.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 |
---|---|---|
@@ -1,29 +1,9 @@ | ||
package heyblack.flexiblepcb.mixin.rule.fixUnstableOnGroundTag; | ||
|
||
import heyblack.flexiblepcb.FlexiblePCBSettings; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.world.BlockView; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
@Mixin(Entity.class) | ||
public class EntityMixin | ||
{ | ||
// @Redirect( | ||
// method = "move", | ||
// at = @At( | ||
// value = "INVOKE", | ||
// target = "Lnet/minecraft/block/Block;onEntityLand(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)V" | ||
// ) | ||
// ) | ||
// public void checkVelocity(Block instance, BlockView world, Entity entity) { | ||
// if (FlexiblePCBSettings.fixUnstableOnGroundTag) { | ||
// // 条件大概是adjustMovementForCollisions后的y轴动量小于0且绝对值小于0.08 | ||
// if () { | ||
// | ||
// } | ||
// } | ||
// } | ||
} |