feat: armadilloImmediateDespawns
This commit is contained in:
8 files changed
+37
-18
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
package com.github.zly2006.carpetslsaddition.mixin.entity;
|
||||
|
||||
import com.github.zly2006.carpetslsaddition.SLSCarpetSettings;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.entity.passive.AnimalEntity;
|
||||
import net.minecraft.entity.passive.ArmadilloEntity;
|
||||
import net.minecraft.world.World;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
@Mixin(ArmadilloEntity.class)
|
||||
public abstract class MixinArmadilloEntity extends AnimalEntity {
|
||||
protected MixinArmadilloEntity(EntityType<? extends AnimalEntity> entityType, World world) {
|
||||
super(entityType, world);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canImmediatelyDespawn(double distanceSquared) {
|
||||
return SLSCarpetSettings.armadilloImmediateDespawns;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user