Last active
August 15, 2023 07:04
-
-
Save iDevMC/9de6c86d8820b5f9206441b64b0d09d9 to your computer and use it in GitHub Desktop.
Minecraft 1.20.1 NMS mobs
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
package project.takai.customentityloader.nms.v1_20_1; | |
import net.minecraft.world.entity.EntityTypes; | |
import net.minecraft.world.entity.GlowSquid; | |
import net.minecraft.world.entity.ambient.EntityBat; | |
import net.minecraft.world.entity.animal.EntityBee; | |
import net.minecraft.world.entity.animal.EntityCat; | |
import net.minecraft.world.entity.animal.EntityChicken; | |
import net.minecraft.world.entity.animal.EntityCod; | |
import net.minecraft.world.entity.animal.EntityCow; | |
import net.minecraft.world.entity.animal.EntityDolphin; | |
import net.minecraft.world.entity.animal.EntityFox; | |
import net.minecraft.world.entity.animal.EntityIronGolem; | |
import net.minecraft.world.entity.animal.EntityMushroomCow; | |
import net.minecraft.world.entity.animal.EntityOcelot; | |
import net.minecraft.world.entity.animal.EntityPanda; | |
import net.minecraft.world.entity.animal.EntityParrot; | |
import net.minecraft.world.entity.animal.EntityPig; | |
import net.minecraft.world.entity.animal.EntityPolarBear; | |
import net.minecraft.world.entity.animal.EntityPufferFish; | |
import net.minecraft.world.entity.animal.EntityRabbit; | |
import net.minecraft.world.entity.animal.EntitySalmon; | |
import net.minecraft.world.entity.animal.EntitySheep; | |
import net.minecraft.world.entity.animal.EntitySnowman; | |
import net.minecraft.world.entity.animal.EntitySquid; | |
import net.minecraft.world.entity.animal.EntityTropicalFish; | |
import net.minecraft.world.entity.animal.EntityTurtle; | |
import net.minecraft.world.entity.animal.EntityWolf; | |
import net.minecraft.world.entity.animal.allay.Allay; | |
import net.minecraft.world.entity.animal.axolotl.Axolotl; | |
import net.minecraft.world.entity.animal.camel.Camel; | |
import net.minecraft.world.entity.animal.frog.Frog; | |
import net.minecraft.world.entity.animal.frog.Tadpole; | |
import net.minecraft.world.entity.animal.goat.Goat; | |
import net.minecraft.world.entity.animal.horse.EntityHorse; | |
import net.minecraft.world.entity.animal.horse.EntityHorseDonkey; | |
import net.minecraft.world.entity.animal.horse.EntityHorseMule; | |
import net.minecraft.world.entity.animal.horse.EntityHorseSkeleton; | |
import net.minecraft.world.entity.animal.horse.EntityHorseZombie; | |
import net.minecraft.world.entity.animal.horse.EntityLlama; | |
import net.minecraft.world.entity.animal.horse.EntityLlamaTrader; | |
import net.minecraft.world.entity.animal.sniffer.Sniffer; | |
import net.minecraft.world.entity.boss.enderdragon.EntityEnderDragon; | |
import net.minecraft.world.entity.boss.wither.EntityWither; | |
import net.minecraft.world.entity.monster.EntityBlaze; | |
import net.minecraft.world.entity.monster.EntityCaveSpider; | |
import net.minecraft.world.entity.monster.EntityCreeper; | |
import net.minecraft.world.entity.monster.EntityDrowned; | |
import net.minecraft.world.entity.monster.EntityEnderman; | |
import net.minecraft.world.entity.monster.EntityEndermite; | |
import net.minecraft.world.entity.monster.EntityEvoker; | |
import net.minecraft.world.entity.monster.EntityGhast; | |
import net.minecraft.world.entity.monster.EntityGiantZombie; | |
import net.minecraft.world.entity.monster.EntityGuardian; | |
import net.minecraft.world.entity.monster.EntityGuardianElder; | |
import net.minecraft.world.entity.monster.EntityIllagerIllusioner; | |
import net.minecraft.world.entity.monster.EntityMagmaCube; | |
import net.minecraft.world.entity.monster.EntityPhantom; | |
import net.minecraft.world.entity.monster.EntityPigZombie; | |
import net.minecraft.world.entity.monster.EntityPillager; | |
import net.minecraft.world.entity.monster.EntityRavager; | |
import net.minecraft.world.entity.monster.EntityShulker; | |
import net.minecraft.world.entity.monster.EntitySilverfish; | |
import net.minecraft.world.entity.monster.EntitySkeleton; | |
import net.minecraft.world.entity.monster.EntitySkeletonStray; | |
import net.minecraft.world.entity.monster.EntitySkeletonWither; | |
import net.minecraft.world.entity.monster.EntitySlime; | |
import net.minecraft.world.entity.monster.EntitySpider; | |
import net.minecraft.world.entity.monster.EntityStrider; | |
import net.minecraft.world.entity.monster.EntityVex; | |
import net.minecraft.world.entity.monster.EntityVindicator; | |
import net.minecraft.world.entity.monster.EntityWitch; | |
import net.minecraft.world.entity.monster.EntityZoglin; | |
import net.minecraft.world.entity.monster.EntityZombie; | |
import net.minecraft.world.entity.monster.EntityZombieHusk; | |
import net.minecraft.world.entity.monster.EntityZombieVillager; | |
import net.minecraft.world.entity.monster.hoglin.EntityHoglin; | |
import net.minecraft.world.entity.monster.piglin.EntityPiglin; | |
import net.minecraft.world.entity.monster.piglin.EntityPiglinBrute; | |
import net.minecraft.world.entity.monster.warden.Warden; | |
import net.minecraft.world.entity.npc.EntityVillager; | |
/** | |
* Class version of the previous code | |
*/ | |
public class Entities { | |
public static final EntityTypes<Allay> ALLAY = net.minecraft.world.entity.EntityTypes.b; | |
public static final EntityTypes<Axolotl> AXOLOTL = net.minecraft.world.entity.EntityTypes.f; | |
public static final EntityTypes<EntityBat> BAT = net.minecraft.world.entity.EntityTypes.g; | |
public static final EntityTypes<EntityBee> BEE = net.minecraft.world.entity.EntityTypes.h; | |
public static final EntityTypes<EntityBlaze> BLAZE = net.minecraft.world.entity.EntityTypes.i; | |
public static final EntityTypes<Camel> CAMEL = net.minecraft.world.entity.EntityTypes.l; | |
public static final EntityTypes<EntityCat> CAT = net.minecraft.world.entity.EntityTypes.m; | |
public static final EntityTypes<EntityCaveSpider> CAVE_SPIDER = net.minecraft.world.entity.EntityTypes.n; | |
public static final EntityTypes<EntityChicken> CHICKEN = net.minecraft.world.entity.EntityTypes.q; | |
public static final EntityTypes<EntityCod> COD = net.minecraft.world.entity.EntityTypes.r; | |
public static final EntityTypes<EntityCow> COW = net.minecraft.world.entity.EntityTypes.t; | |
public static final EntityTypes<EntityCreeper> CREEPER = net.minecraft.world.entity.EntityTypes.u; | |
public static final EntityTypes<EntityDolphin> DOLPHIN = net.minecraft.world.entity.EntityTypes.v; | |
public static final EntityTypes<EntityHorseDonkey> DONKEY = net.minecraft.world.entity.EntityTypes.w; | |
public static final EntityTypes<EntityDrowned> DROWNED = net.minecraft.world.entity.EntityTypes.y; | |
public static final EntityTypes<EntityGuardianElder> ELDER_GUARDIAN = net.minecraft.world.entity.EntityTypes.A; | |
public static final EntityTypes<EntityEnderDragon> ENDER_DRAGON = net.minecraft.world.entity.EntityTypes.C; | |
public static final EntityTypes<EntityEnderman> ENDERMAN = net.minecraft.world.entity.EntityTypes.E; | |
public static final EntityTypes<EntityEndermite> ENDERMITE = net.minecraft.world.entity.EntityTypes.F; | |
public static final EntityTypes<EntityEvoker> EVOKER = net.minecraft.world.entity.EntityTypes.G; | |
public static final EntityTypes<EntityFox> FOX = net.minecraft.world.entity.EntityTypes.N; | |
public static final EntityTypes<Frog> FROG = net.minecraft.world.entity.EntityTypes.O; | |
public static final EntityTypes<EntityGhast> GHAST = net.minecraft.world.entity.EntityTypes.Q; | |
public static final EntityTypes<EntityGiantZombie> GIANT = net.minecraft.world.entity.EntityTypes.R; | |
public static final EntityTypes<GlowSquid> GLOW_SQUID = net.minecraft.world.entity.EntityTypes.T; | |
public static final EntityTypes<Goat> GOAT = net.minecraft.world.entity.EntityTypes.U; | |
public static final EntityTypes<EntityGuardian> GUARDIAN = net.minecraft.world.entity.EntityTypes.V; | |
public static final EntityTypes<EntityHoglin> HOGLIN = net.minecraft.world.entity.EntityTypes.W; | |
public static final EntityTypes<EntityHorse> HORSE = net.minecraft.world.entity.EntityTypes.Y; | |
public static final EntityTypes<EntityZombieHusk> HUSK = net.minecraft.world.entity.EntityTypes.Z; | |
public static final EntityTypes<EntityIllagerIllusioner> ILLUSIONER = net.minecraft.world.entity.EntityTypes.aa; | |
public static final EntityTypes<EntityIronGolem> IRON_GOLEM = net.minecraft.world.entity.EntityTypes.ac; | |
public static final EntityTypes<EntityLlama> LLAMA = net.minecraft.world.entity.EntityTypes.aj; | |
public static final EntityTypes<EntityMagmaCube> MAGMA_CUBE = net.minecraft.world.entity.EntityTypes.al; | |
public static final EntityTypes<EntityMushroomCow> MOOSHROOM = net.minecraft.world.entity.EntityTypes.ao; | |
public static final EntityTypes<EntityHorseMule> MULE = net.minecraft.world.entity.EntityTypes.ap; | |
public static final EntityTypes<EntityOcelot> OCELOT = net.minecraft.world.entity.EntityTypes.aq; | |
public static final EntityTypes<EntityPanda> PANDA = net.minecraft.world.entity.EntityTypes.as; | |
public static final EntityTypes<EntityParrot> PARROT = net.minecraft.world.entity.EntityTypes.at; | |
public static final EntityTypes<EntityPhantom> PHANTOM = net.minecraft.world.entity.EntityTypes.au; | |
public static final EntityTypes<EntityPig> PIG = net.minecraft.world.entity.EntityTypes.av; | |
public static final EntityTypes<EntityPiglin> PIGLIN = net.minecraft.world.entity.EntityTypes.aw; | |
public static final EntityTypes<EntityPiglinBrute> PIGLIN_BRUTE = net.minecraft.world.entity.EntityTypes.ax; | |
public static final EntityTypes<EntityPillager> PILLAGER = net.minecraft.world.entity.EntityTypes.ay; | |
public static final EntityTypes<EntityPolarBear> POLAR_BEAR = net.minecraft.world.entity.EntityTypes.az; | |
public static final EntityTypes<EntityPufferFish> PUFFERFISH = net.minecraft.world.entity.EntityTypes.aB; | |
public static final EntityTypes<EntityRabbit> RABBIT = net.minecraft.world.entity.EntityTypes.aC; | |
public static final EntityTypes<EntityRavager> RAVAGER = net.minecraft.world.entity.EntityTypes.aD; | |
public static final EntityTypes<EntitySalmon> SALMON = net.minecraft.world.entity.EntityTypes.aE; | |
public static final EntityTypes<EntitySheep> SHEEP = net.minecraft.world.entity.EntityTypes.aF; | |
public static final EntityTypes<EntityShulker> SHULKER = net.minecraft.world.entity.EntityTypes.aG; | |
public static final EntityTypes<EntitySilverfish> SILVERFISH = net.minecraft.world.entity.EntityTypes.aI; | |
public static final EntityTypes<EntitySkeleton> SKELETON = net.minecraft.world.entity.EntityTypes.aJ; | |
public static final EntityTypes<EntityHorseSkeleton> SKELETON_HORSE = net.minecraft.world.entity.EntityTypes.aK; | |
public static final EntityTypes<EntitySlime> SLIME = net.minecraft.world.entity.EntityTypes.aL; | |
public static final EntityTypes<Sniffer> SNIFER = net.minecraft.world.entity.EntityTypes.aN; | |
public static final EntityTypes<EntitySnowman> SNOWMAN = net.minecraft.world.entity.EntityTypes.aO; | |
public static final EntityTypes<EntitySpider> SPIDER = net.minecraft.world.entity.EntityTypes.aS; | |
public static final EntityTypes<EntitySquid> SQUID = net.minecraft.world.entity.EntityTypes.aT; | |
public static final EntityTypes<EntitySkeletonStray> STRAY = net.minecraft.world.entity.EntityTypes.aU; | |
public static final EntityTypes<EntityStrider> STRIDER = net.minecraft.world.entity.EntityTypes.aV; | |
public static final EntityTypes<Tadpole> TADPOLE = net.minecraft.world.entity.EntityTypes.aW; | |
public static final EntityTypes<EntityTropicalFish> TROPICAL_FISH = net.minecraft.world.entity.EntityTypes.bc; | |
public static final EntityTypes<EntityTurtle> TURTLE = net.minecraft.world.entity.EntityTypes.bd; | |
public static final EntityTypes<EntityVex> VEX = net.minecraft.world.entity.EntityTypes.be; | |
public static final EntityTypes<EntityVillager> VILLAGER = net.minecraft.world.entity.EntityTypes.bf; | |
public static final EntityTypes<EntityVindicator> VINDICATOR = net.minecraft.world.entity.EntityTypes.bg; | |
public static final EntityTypes<EntityLlamaTrader> WANDERING_TRADER = net.minecraft.world.entity.EntityTypes.ba; | |
public static final EntityTypes<Warden> WARDEN = net.minecraft.world.entity.EntityTypes.bi; | |
public static final EntityTypes<EntityWitch> WITCH = net.minecraft.world.entity.EntityTypes.bj; | |
public static final EntityTypes<EntityWither> WITHER = net.minecraft.world.entity.EntityTypes.bk; | |
public static final EntityTypes<EntitySkeletonWither> WITHER_SKELETON = net.minecraft.world.entity.EntityTypes.bl; | |
public static final EntityTypes<EntityWolf> WOLF = net.minecraft.world.entity.EntityTypes.bn; | |
public static final EntityTypes<EntityZoglin> ZOGLIN = net.minecraft.world.entity.EntityTypes.bo; | |
public static final EntityTypes<EntityZombie> ZOMBIE = net.minecraft.world.entity.EntityTypes.bp; | |
public static final EntityTypes<EntityHorseZombie> ZOMBIEFIED_HORSE = net.minecraft.world.entity.EntityTypes.bq; | |
public static final EntityTypes<EntityZombieVillager> ZOMBIE_VILLAGER = net.minecraft.world.entity.EntityTypes.br; | |
public static final EntityTypes<EntityPigZombie> ZOMBIEFIED_PIGLIN = net.minecraft.world.entity.EntityTypes.bs; | |
} |
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
package project.takai.customentityloader.nms.v1_20_1; | |
@SuppressWarnings("rawtypes") | |
/** | |
* Enum of entities for version 1.20.1. | |
* I have too much free time honestly.. | |
*/ | |
public enum EntityTypes { | |
ALLAY(net.minecraft.world.entity.EntityTypes.b), | |
AXOLOTL(net.minecraft.world.entity.EntityTypes.f), | |
BAT(net.minecraft.world.entity.EntityTypes.g), | |
BEE(net.minecraft.world.entity.EntityTypes.h), | |
BLAZE(net.minecraft.world.entity.EntityTypes.i), | |
CAMEL(net.minecraft.world.entity.EntityTypes.l), | |
CAT(net.minecraft.world.entity.EntityTypes.m), | |
CAVE_SPIDER(net.minecraft.world.entity.EntityTypes.n), | |
CHICKEN(net.minecraft.world.entity.EntityTypes.q), | |
COD(net.minecraft.world.entity.EntityTypes.r), | |
COW(net.minecraft.world.entity.EntityTypes.t), | |
CREEPER(net.minecraft.world.entity.EntityTypes.u), | |
DOLPHIN(net.minecraft.world.entity.EntityTypes.v), | |
DONKEY(net.minecraft.world.entity.EntityTypes.w), | |
DROWNED(net.minecraft.world.entity.EntityTypes.y), | |
ELDER_GUARDIAN(net.minecraft.world.entity.EntityTypes.A), | |
ENDER_DRAGON(net.minecraft.world.entity.EntityTypes.C), | |
ENDERMAN(net.minecraft.world.entity.EntityTypes.E), | |
ENDERMITE(net.minecraft.world.entity.EntityTypes.F), | |
EVOKER(net.minecraft.world.entity.EntityTypes.G), | |
FOX(net.minecraft.world.entity.EntityTypes.N), | |
FROG(net.minecraft.world.entity.EntityTypes.O), | |
GHAST(net.minecraft.world.entity.EntityTypes.Q), | |
GIANT(net.minecraft.world.entity.EntityTypes.R), | |
GLOW_SQUID(net.minecraft.world.entity.EntityTypes.T), | |
GOAT(net.minecraft.world.entity.EntityTypes.U), | |
GUARDIAN(net.minecraft.world.entity.EntityTypes.V), | |
HOGLIN(net.minecraft.world.entity.EntityTypes.W), | |
HORSE(net.minecraft.world.entity.EntityTypes.Y), | |
HUSK(net.minecraft.world.entity.EntityTypes.Z), | |
ILLUSIONER(net.minecraft.world.entity.EntityTypes.aa), | |
IRON_GOLEM(net.minecraft.world.entity.EntityTypes.ac), | |
LLAMA(net.minecraft.world.entity.EntityTypes.aj), | |
MAGMA_CUBE(net.minecraft.world.entity.EntityTypes.al), | |
MOOSHROOM(net.minecraft.world.entity.EntityTypes.ao), | |
MULE(net.minecraft.world.entity.EntityTypes.ap), | |
OCELOT(net.minecraft.world.entity.EntityTypes.aq), | |
PANDA(net.minecraft.world.entity.EntityTypes.as), | |
PARROT(net.minecraft.world.entity.EntityTypes.at), | |
PHANTOM(net.minecraft.world.entity.EntityTypes.au), | |
PIG(net.minecraft.world.entity.EntityTypes.av), | |
PIGLIN(net.minecraft.world.entity.EntityTypes.aw), | |
PIGLIN_BRUTE(net.minecraft.world.entity.EntityTypes.ax), | |
PILLAGER(net.minecraft.world.entity.EntityTypes.ay), | |
POLAR_BEAR(net.minecraft.world.entity.EntityTypes.az), | |
PUFFERFISH(net.minecraft.world.entity.EntityTypes.aB), | |
RABBIT(net.minecraft.world.entity.EntityTypes.aC), | |
RAVAGER(net.minecraft.world.entity.EntityTypes.aD), | |
SALMON(net.minecraft.world.entity.EntityTypes.aE), | |
SHEEP(net.minecraft.world.entity.EntityTypes.aF), | |
SHULKER(net.minecraft.world.entity.EntityTypes.aG), | |
SILVERFISH(net.minecraft.world.entity.EntityTypes.aI), | |
SKELETON(net.minecraft.world.entity.EntityTypes.aJ), | |
SKELETON_HORSE(net.minecraft.world.entity.EntityTypes.aK), | |
SLIME(net.minecraft.world.entity.EntityTypes.aM), | |
SNIFER(net.minecraft.world.entity.EntityTypes.aN), | |
SNOWMAN(net.minecraft.world.entity.EntityTypes.aO), | |
SPIDER(net.minecraft.world.entity.EntityTypes.aS), | |
SQUID(net.minecraft.world.entity.EntityTypes.aT), | |
STRAY(net.minecraft.world.entity.EntityTypes.aU), | |
STRIDER(net.minecraft.world.entity.EntityTypes.aV), | |
TADPOLE(net.minecraft.world.entity.EntityTypes.aW), | |
TROPICAL_FISH(net.minecraft.world.entity.EntityTypes.bc), | |
TURTLE(net.minecraft.world.entity.EntityTypes.bd), | |
VEX(net.minecraft.world.entity.EntityTypes.be), | |
VILLAGER(net.minecraft.world.entity.EntityTypes.bf), | |
VINDICATOR(net.minecraft.world.entity.EntityTypes.bg), | |
WANDERING_TRADER(net.minecraft.world.entity.EntityTypes.ba), | |
WARDEN(net.minecraft.world.entity.EntityTypes.bi), | |
WITCH(net.minecraft.world.entity.EntityTypes.bj), | |
WITHER(net.minecraft.world.entity.EntityTypes.bk), | |
WITHER_SKELETON(net.minecraft.world.entity.EntityTypes.bl), | |
WOLF(net.minecraft.world.entity.EntityTypes.bn), | |
ZOGLIN(net.minecraft.world.entity.EntityTypes.bo), | |
ZOMBIE(net.minecraft.world.entity.EntityTypes.bp), | |
ZOMBIEFIED_HORSE(net.minecraft.world.entity.EntityTypes.bq), | |
ZOMBIE_VILLAGER(net.minecraft.world.entity.EntityTypes.br), | |
ZOMBIEFIED_PIGLIN(net.minecraft.world.entity.EntityTypes.bs), | |
; | |
private net.minecraft.world.entity.EntityTypes entity; | |
public net.minecraft.world.entity.EntityTypes getEntity() { return entity; } | |
private EntityTypes(net.minecraft.world.entity.EntityTypes entity) { this.entity = entity; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment