Class LivingEntityMixin

java.lang.Object
de.z0rdak.yawp.mixin.flag.LivingEntityMixin

public abstract class LivingEntityMixin extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable net.minecraft.world.entity.player.Player
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCreateWitherRose(@Nullable net.minecraft.world.entity.LivingEntity adversary, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci, net.minecraft.server.level.ServerLevel level, boolean bl, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
    If a corresponding flag is set, this injection prevents the placing of a wither rose as a block and drops it as ItemEntity as vanilla would do it when the gamerule doMobgrief is set to false
    void
    onDrop(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource source, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     
    void
    onFallDamage(double fallDistance, float damageMultiplier, net.minecraft.world.damagesource.DamageSource damageSource, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
     
    void
    onKnockback(double strength, double x, double z, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     
    void
    onXpDrop(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • attackingPlayer

      @Nullable protected @Nullable net.minecraft.world.entity.player.Player attackingPlayer
  • Constructor Details

    • LivingEntityMixin

      public LivingEntityMixin()
  • Method Details

    • onKnockback

      public void onKnockback(double strength, double x, double z, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • onDrop

      public void onDrop(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource source, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • onFallDamage

      public void onFallDamage(double fallDistance, float damageMultiplier, net.minecraft.world.damagesource.DamageSource damageSource, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    • onXpDrop

      public void onXpDrop(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • onCreateWitherRose

      public void onCreateWitherRose(@Nullable @Nullable net.minecraft.world.entity.LivingEntity adversary, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci, net.minecraft.server.level.ServerLevel level, boolean bl, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState)
      If a corresponding flag is set, this injection prevents the placing of a wither rose as a block and drops it as ItemEntity as vanilla would do it when the gamerule doMobgrief is set to false