|
| 1 | +/* |
| 2 | + * Steam 'n' Rails |
| 3 | + * Copyright (c) 2024 The Railways Team |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU Lesser General Public License as published by |
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU Lesser General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU Lesser General Public License |
| 16 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | + */ |
| 18 | + |
| 19 | +package com.railwayteam.railways.fabric.mixin.self; |
| 20 | + |
| 21 | +import com.railwayteam.railways.Railways; |
| 22 | +import com.railwayteam.railways.content.custom_tracks.casing.CasingResourceReloadListener; |
| 23 | +import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener; |
| 24 | +import net.minecraft.resources.ResourceLocation; |
| 25 | +import net.minecraft.server.packs.resources.ResourceManagerReloadListener; |
| 26 | +import org.spongepowered.asm.mixin.Mixin; |
| 27 | +import org.spongepowered.asm.mixin.Unique; |
| 28 | + |
| 29 | +@Mixin(CasingResourceReloadListener.class) |
| 30 | +public abstract class CasingResourceReloadListenerMixin implements ResourceManagerReloadListener, IdentifiableResourceReloadListener { |
| 31 | + @Unique |
| 32 | + private static final ResourceLocation ID = Railways.asResource("casing_reload_listener"); |
| 33 | + |
| 34 | + @Override |
| 35 | + public ResourceLocation getFabricId() { |
| 36 | + return ID; |
| 37 | + } |
| 38 | +} |
0 commit comments