add zombie pigman identifier (alias zombiefied piglin)

This commit is contained in:
Bixilon 2020-10-06 19:42:03 +02:00
parent 860ea644b8
commit 3084481f35
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
/*
* Codename Minosoft
* Copyright (C) 2020 Moritz Zwerger
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* This software is not affiliated with Mojang AB, the original developer of Minecraft.
*/
package de.bixilon.minosoft.game.datatypes.entities.mob;
import de.bixilon.minosoft.game.datatypes.entities.Location;
import de.bixilon.minosoft.game.datatypes.entities.meta.EntityMetaData;
import java.util.UUID;
public class ZombiePigman extends ZombifiedPiglin {
public ZombiePigman(int entityId, UUID uuid, Location location, short yaw, short pitch, short headYaw, EntityMetaData.MetaDataHashMap sets, int protocolId) {
super(entityId, uuid, location, yaw, pitch, headYaw, sets, protocolId);
}
}

View File

@ -72,6 +72,7 @@ public class Entities {
registerEntityClass("minecraft:slime", Slime.class);
registerEntityClass("minecraft:ghast", Ghast.class);
registerEntityClass("minecraft:zombified_piglin", ZombifiedPiglin.class);
registerEntityClass("minecraft:zombie_pigman", ZombiePigman.class);
registerEntityClass("minecraft:enderman", Enderman.class);
registerEntityClass("minecraft:cave_spider", CaveSpider.class);
registerEntityClass("minecraft:silverfish", Silverfish.class);