This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
forked from Strangerrrs/Raven-bS
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [+] **Add** Phase. - Allow you to leave the cage before match start. - Thanks to @alan34. - [+] **Add** CustomName. - Allow you to rename modules. - [+] **Add** CommandChat. - Allow you to use raven command by chat. - [+] **Add** "rename","setBName","say" command. - [+] **Add** strafeMove option to TargetStrafe. - [+] **Add** "Watchdog 1.12.2" autoBlock mode to KillAura. - ***unverified*** - [※] **Improve** ClickGui. - [-] **Remove** SaveMoveKeys. +2 unverified changes.
- Loading branch information
Showing
37 changed files
with
1,233 additions
and
187 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 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,49 @@ | ||
package keystrokesmod.event; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.util.AxisAlignedBB; | ||
import net.minecraft.util.BlockPos; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.fml.common.eventhandler.Cancelable; | ||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
@Cancelable | ||
public class BlockAABBEvent extends Event { | ||
private final World world; | ||
private final Block block; | ||
private final BlockPos blockPos; | ||
private AxisAlignedBB boundingBox; | ||
private final AxisAlignedBB maskBoundingBox; | ||
|
||
public BlockAABBEvent(World world, Block block, BlockPos blockPos, AxisAlignedBB maskBoundingBox, AxisAlignedBB boundingBox) { | ||
this.world = world; | ||
this.block = block; | ||
this.blockPos = blockPos; | ||
this.maskBoundingBox = maskBoundingBox; | ||
this.boundingBox = boundingBox; | ||
} | ||
|
||
public World getWorld() { | ||
return world; | ||
} | ||
|
||
public Block getBlock() { | ||
return block; | ||
} | ||
|
||
public BlockPos getBlockPos() { | ||
return blockPos; | ||
} | ||
|
||
public AxisAlignedBB getBoundingBox() { | ||
return boundingBox; | ||
} | ||
|
||
public void setBoundingBox(AxisAlignedBB boundingBox) { | ||
this.boundingBox = boundingBox; | ||
} | ||
|
||
public AxisAlignedBB getMaskBoundingBox() { | ||
return maskBoundingBox; | ||
} | ||
} |
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
43 changes: 43 additions & 0 deletions
43
src/main/java/keystrokesmod/mixins/impl/world/MixinBlock.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,43 @@ | ||
package keystrokesmod.mixins.impl.world; | ||
|
||
import keystrokesmod.event.BlockAABBEvent; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.util.AxisAlignedBB; | ||
import net.minecraft.util.BlockPos; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.common.MinecraftForge; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import java.util.List; | ||
|
||
@Mixin(Block.class) | ||
public abstract class MixinBlock { | ||
|
||
@Shadow public abstract AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state); | ||
|
||
/** | ||
* @author xia__mc | ||
* @reason for Hypixel Auto Phase (in module phase) | ||
* | ||
*/ | ||
@Inject(method = "addCollisionBoxesToList", at = @At("HEAD"), cancellable = true) | ||
public void addCollisionBoxesToList(World worldIn, BlockPos pos, IBlockState state, AxisAlignedBB mask, List<AxisAlignedBB> list, | ||
Entity collidingEntity, CallbackInfo ci) { | ||
if (collidingEntity == Minecraft.getMinecraft().thePlayer) { | ||
final AxisAlignedBB axisalignedbb = this.getCollisionBoundingBox(worldIn, pos, state); | ||
final BlockAABBEvent event = new BlockAABBEvent(worldIn, (Block)(Object) this, pos, axisalignedbb, mask); | ||
MinecraftForge.EVENT_BUS.post(event); | ||
|
||
if (event.isCanceled() || event.getMaskBoundingBox() == null || event.getBoundingBox() == null || !event.getMaskBoundingBox().intersectsWith(event.getBoundingBox())) { | ||
ci.cancel(); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.