java.lang.Object
tech.anonymoushacker1279.immersiveweapons.mixin.EntityMixin

public abstract class EntityMixin extends Object
See individual methods for notes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dampensVibrations(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> ci)
    Allow an entity to dampen vibrations if wearing padded leather armor.
    abstract Iterable<net.minecraft.world.item.ItemStack>
     
    abstract net.minecraft.world.level.Level
     
    void
    load(net.minecraft.nbt.CompoundTag pCompound, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    Loading entities from tags does not respect any "passenger" tags, so we need to inject into the load method to manually set the passengers.
    abstract net.minecraft.world.phys.Vec3
     

    Methods inherited from class java.lang.Object

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

    • EntityMixin

      public EntityMixin()
  • Method Details

    • getArmorSlots

      public abstract Iterable<net.minecraft.world.item.ItemStack> getArmorSlots()
    • level

      public abstract net.minecraft.world.level.Level level()
    • position

      public abstract net.minecraft.world.phys.Vec3 position()
    • dampensVibrations

      public void dampensVibrations(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> ci)
      Allow an entity to dampen vibrations if wearing padded leather armor.
    • load

      public void load(net.minecraft.nbt.CompoundTag pCompound, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
      Loading entities from tags does not respect any "passenger" tags, so we need to inject into the load method to manually set the passengers.
      Parameters:
      pCompound - the CompoundTag to load
      ci - callback info