24 lines
622 B
Java
24 lines
622 B
Java
package carpet.mixins;
|
|
|
|
import carpet.utils.RandomTools;
|
|
import net.minecraft.entity.mob.BlazeEntity;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.injection.At;
|
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
|
|
|
import java.util.Random;
|
|
|
|
@Mixin(BlazeEntity.class)
|
|
public class BlazeEntity_extremeMixin
|
|
{
|
|
// unused actually
|
|
@Redirect(method = "mobTick", expect = 1, at = @At(
|
|
value = "INVOKE",
|
|
target = "Ljava/util/Random;nextGaussian()D"
|
|
))
|
|
private double nextGauBian(Random random)
|
|
{
|
|
return RandomTools.nextGauBian(random);
|
|
}
|
|
}
|