From d733e34162faac5447dc550969e7eef28f5e284a Mon Sep 17 00:00:00 2001 From: Aapo Katila Date: Tue, 24 Mar 2026 23:00:23 +0200 Subject: [PATCH] Add happy ghast implementation --- .../entity/animal/HappyGhastMixin_API.java | 32 +++++++++++++++++++ src/mixins/resources/mixins.sponge.api.json | 3 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/entity/animal/HappyGhastMixin_API.java diff --git a/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/entity/animal/HappyGhastMixin_API.java b/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/entity/animal/HappyGhastMixin_API.java new file mode 100644 index 00000000000..b271e0f74a8 --- /dev/null +++ b/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/entity/animal/HappyGhastMixin_API.java @@ -0,0 +1,32 @@ +/* + * This file is part of SpongeAPI, licensed under the MIT License (MIT). + * + * Copyright (c) SpongePowered + * Copyright (c) contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package org.spongepowered.common.mixin.api.minecraft.world.entity.animal; + +import org.spongepowered.api.entity.living.animal.HappyGhast; +import org.spongepowered.asm.mixin.Mixin; + +@Mixin(net.minecraft.world.entity.animal.HappyGhast.class) +public abstract class HappyGhastMixin_API implements HappyGhast { +} diff --git a/src/mixins/resources/mixins.sponge.api.json b/src/mixins/resources/mixins.sponge.api.json index 0ac09aad09a..e8ee00faa11 100644 --- a/src/mixins/resources/mixins.sponge.api.json +++ b/src/mixins/resources/mixins.sponge.api.json @@ -159,6 +159,7 @@ "minecraft.world.entity.animal.Fox_VariantMixin_API", "minecraft.world.entity.animal.FoxMixin_API", "minecraft.world.entity.animal.FrogVariantMixin_API", + "minecraft.world.entity.animal.HappyGhastMixin_API", "minecraft.world.entity.animal.IronGolemMixin_API", "minecraft.world.entity.animal.MushroomCow_MushroomTypeMixin_API", "minecraft.world.entity.animal.MushroomCowMixin_API", @@ -389,10 +390,10 @@ "minecraft.world.level.biome.MobSpawnSettings_MobSpawnCostMixin_API", "minecraft.world.level.biome.MultiNoiseBiomeSourceMixin_API", "minecraft.world.level.biome.TheEndBiomeSourceMixin_API", + "minecraft.world.level.block.CopperGolemStatueBlock_PoseMixin_API", "minecraft.world.level.block.MirrorMixin_API", "minecraft.world.level.block.PortalMixin_API", "minecraft.world.level.block.RotationMixin_API", - "minecraft.world.level.block.CopperGolemStatueBlock_PoseMixin_API", "minecraft.world.level.block.WeatheringCopper_WeatherStateMixin_API", "minecraft.world.level.block.entity.AbstractFurnaceBlockEntityMixin_API", "minecraft.world.level.block.entity.BannerBlockEntityMixin_API",