Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.cjcj55.chrispymod.entity;
- import com.cjcj55.chrispymod.ChrispyMod;
- import com.cjcj55.chrispymod.init.EntitiesInit;
- import net.minecraft.item.MerchantOffers;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.world.World;
- public class WanderingCowEntity extends AbstractWanderingCowEntity
- {
- public WanderingCowEntity(World worldIn)
- {
- super(EntitiesInit.WANDERING_COW, worldIn);
- }
- @Override
- public ResourceLocation getTexture()
- {
- return new ResourceLocation(ChrispyMod.MOD_ID, "textures/entity/wandering_cow.png");
- }
- @Override
- protected void populateTradeData()
- {
- MerchantOffers offers = this.getOffers();
- this.addTrades(offers, WanderingCowTrades.WANDERING_COW.get(BASE_TRADES), Math.max(4, this.rand.nextInt(6) + 1));
- this.addTrades(offers, WanderingCowTrades.WANDERING_COW.get(RARE_TRADES), Math.max(2, this.rand.nextInt(3) + 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement