mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-20 15:39:16 +00:00
chicken to bat
This commit is contained in:
@@ -2,16 +2,17 @@ package com.hibiscusmc.hmccosmetics.entities;
|
|||||||
|
|
||||||
import com.hibiscusmc.hmccosmetics.HMCCosmeticsPlugin;
|
import com.hibiscusmc.hmccosmetics.HMCCosmeticsPlugin;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
import net.minecraft.world.entity.ambient.Bat;
|
||||||
import net.minecraft.world.entity.animal.Chicken;
|
import net.minecraft.world.entity.animal.Chicken;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.craftbukkit.v1_19_R1.CraftWorld;
|
import org.bukkit.craftbukkit.v1_19_R1.CraftWorld;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
|
|
||||||
public class MEGEntity extends Chicken {
|
public class MEGEntity extends Bat {
|
||||||
|
|
||||||
public MEGEntity(Location loc) {
|
public MEGEntity(Location loc) {
|
||||||
super(EntityType.CHICKEN, ((CraftWorld) loc.getWorld()).getHandle());
|
super(EntityType.BAT, ((CraftWorld) loc.getWorld()).getHandle());
|
||||||
this.setPos(loc.getX(), loc.getY(), loc.getZ());
|
this.setPos(loc.getX(), loc.getY(), loc.getZ());
|
||||||
HMCCosmeticsPlugin.getInstance().getLogger().info("Spawned MEGEntity at " + loc);
|
HMCCosmeticsPlugin.getInstance().getLogger().info("Spawned MEGEntity at " + loc);
|
||||||
getBukkitLivingEntity().setInvisible(true);
|
getBukkitLivingEntity().setInvisible(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user