Skip to content

Commit

Permalink
add tactical fishing advancement to Upgrade Aquatic mod #43
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Jan 13, 2021
1 parent c278046 commit 048dca2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
package cech12.ceramicbucket.compat;

import cech12.ceramicbucket.api.data.ObtainableEntityType;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.fluid.Fluid;
import net.minecraft.fluid.Fluids;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.ResourceLocation;

import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;

public class UpgradeAquaticCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod {

private static final ResourceLocation advancement = new ResourceLocation("minecraft", "husbandry/tactical_fishing");

List<ObtainableEntityType> obtainableEntityTypes = new ArrayList<>();

public UpgradeAquaticCompat() {
Expand Down Expand Up @@ -42,4 +47,8 @@ public List<ObtainableEntityType> getObtainableEntityTypes() {
return this.obtainableEntityTypes;
}

@Override
public ResourceLocation getEntityObtainingAdvancement(@Nonnull Fluid fluid, @Nonnull Entity entity) {
return advancement;
}
}

0 comments on commit 048dca2

Please sign in to comment.