-
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.
add: wrappers for methods with coordinates from BlockDoor, BlockDoubl…
…ePlant, BlockDragonEgg to BlockPos; fix: aabb absolute creation in Pos; add: IPosition to Pos;
- Loading branch information
Showing
7 changed files
with
266 additions
and
19 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
14 changes: 14 additions & 0 deletions
14
src/main/java/io/github/mjaroslav/mjutils/asm/mixin/accessors/AccessorBlockDoublePlant.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,14 @@ | ||
package io.github.mjaroslav.mjutils.asm.mixin.accessors; | ||
|
||
import net.minecraft.block.BlockDoublePlant; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.world.World; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(BlockDoublePlant.class) | ||
public interface AccessorBlockDoublePlant { | ||
@Invoker("func_149886_b") | ||
boolean dropBlockAndAddStat(@NotNull World world, int x, int y, int z, int meta, @NotNull EntityPlayer harvester); | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/io/github/mjaroslav/mjutils/asm/mixin/accessors/AccessorBlockDragonEgg.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,16 @@ | ||
package io.github.mjaroslav.mjutils.asm.mixin.accessors; | ||
|
||
import net.minecraft.block.BlockDragonEgg; | ||
import net.minecraft.world.World; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(BlockDragonEgg.class) | ||
public interface AccessorBlockDragonEgg { | ||
@Invoker("func_150018_e") | ||
void checkAndFall(@NotNull World world, int x, int y, int z); | ||
|
||
@Invoker("func_150019_m") | ||
void moveRandomly(@NotNull World world, int x, int y, int z); | ||
} |
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.
1d3c2db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mama