mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Add -w flag to butcher for water mobs
beb784e0ffe1d8a8cf678912dbd6207e96afcfc8 Co-Authored-By: Lewis B <17665267+lewisjb@users.noreply.github.com>
This commit is contained in:
@ -35,6 +35,7 @@ import net.minecraft.entity.decoration.ItemFrameEntity;
|
||||
import net.minecraft.entity.decoration.painting.PaintingEntity;
|
||||
import net.minecraft.entity.mob.AmbientEntity;
|
||||
import net.minecraft.entity.mob.MobEntity;
|
||||
import net.minecraft.entity.mob.WaterCreatureEntity;
|
||||
import net.minecraft.entity.passive.AnimalEntity;
|
||||
import net.minecraft.entity.passive.TameableEntity;
|
||||
import net.minecraft.entity.passive.GolemEntity;
|
||||
@ -148,4 +149,9 @@ public class FabricEntityProperties implements EntityProperties {
|
||||
public boolean isPasteable() {
|
||||
return !(entity instanceof ServerPlayerEntity || entity instanceof EnderDragonEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWaterCreature() {
|
||||
return entity instanceof WaterCreatureEntity;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user