-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support Milk All The Mobs 1.14 variant (other mod id) (issue #10)
- add some dependencies
- Loading branch information
Showing
5 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/cech12/ceramicbucket/compat/MilkAllTheMobs_1_14.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cech12.ceramicbucket.compat; | ||
|
||
import net.minecraft.entity.LivingEntity; | ||
import net.minecraft.entity.passive.PigEntity; | ||
import net.minecraft.entity.passive.SheepEntity; | ||
import net.minecraft.entity.passive.horse.DonkeyEntity; | ||
import net.minecraft.entity.passive.horse.HorseEntity; | ||
import net.minecraft.entity.passive.horse.LlamaEntity; | ||
import net.minecraft.entity.passive.horse.MuleEntity; | ||
|
||
public class MilkAllTheMobs_1_14 extends ModCompat.Mod implements ModCompat.MobMilkingMod { | ||
|
||
public MilkAllTheMobs_1_14() { | ||
super("matm"); | ||
} | ||
|
||
@Override | ||
public boolean canEntityBeMilked(LivingEntity entity) { | ||
return entity instanceof SheepEntity | ||
|| entity instanceof LlamaEntity | ||
|| entity instanceof PigEntity | ||
|| entity instanceof DonkeyEntity | ||
|| entity instanceof HorseEntity | ||
|| entity instanceof MuleEntity; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters