Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CryptGhoul.java #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.sweattypalms.skyblock.core.mobs.regions.graveyard;

import com.sweattypalms.skyblock.core.helpers.EntityHelper;
import com.sweattypalms.skyblock.core.mobs.builder.IRegionEntity;
import com.sweattypalms.skyblock.core.mobs.builder.ISkyblockMob;
import com.sweattypalms.skyblock.core.regions.Regions;
import com.sweattypalms.skyblock.core.mobs.builder.SkyblockMob;
import net.minecraft.world.entity.EntityLiving;
import net.minecraft.world.entity.EntityTypes;
import net.minecraft.world.entity.monster.EntityZombie;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.craftbukkit.v1_17_R1.CraftWorld;

public class CryptGhoul extends EntityZombie implements ISkyblockMob, IRegionEntity {

public static final String ID = "crypt_ghoul";

private final SkyblockMob skyblockMob;

public CryptGhoul(Location location, SkyblockMob skyblockMob) {
super(EntityTypes.be, ((CraftWorld) location.getWorld()).getHandle());
this.skyblockMob = skyblockMob;
this.skyblockMob
.setMaxHealth(2000)
.setDamage(350)
.setCustomName("$cCrypt Ghoul")
.setLevel(30)
;

EntityHelper.equipAllArmor(this, Material.CHAINMAIL_CHESTPLATE);
EntityHelper.equipAllArmor(this, Material.CHAINMAIL_LEGGINGS);
EntityHelper.equipAllArmor(this, Material.CHAINMAIL_BOOTS);
}

@Override
public Regions getRegion() {
return Regions.GRAVEYARD;
}


@Override
public SkyblockMob getSkyblockMob() {
return skyblockMob;
}

@Override
public EntityLiving getEntityInstance() {
return this;
}
}