Class EntityMixin
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.mixin.EntityMixin
See individual methods for notes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddampensVibrations(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.Levellevel()voidload(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.Vec3position()
-
Constructor Details
-
EntityMixin
public EntityMixin()
-
-
Method Details
-
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- theCompoundTagto loadci- callback info
-