2019-04-11 12:33:12 +00:00
|
|
|
/*
|
|
|
|
* Minecraft Forge
|
2019-05-14 02:11:24 +00:00
|
|
|
* Copyright (c) 2016-2019.
|
2019-04-11 12:33:12 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
package net.minecraftforge.registries;
|
|
|
|
|
2019-05-23 23:02:15 +00:00
|
|
|
import net.minecraft.network.datasync.IDataSerializer;
|
2019-04-11 12:33:12 +00:00
|
|
|
|
|
|
|
public final class DataSerializerEntry extends ForgeRegistryEntry<DataSerializerEntry>
|
|
|
|
{
|
2019-05-23 23:02:15 +00:00
|
|
|
private final IDataSerializer<?> serializer;
|
2019-04-11 12:33:12 +00:00
|
|
|
|
2019-05-23 23:02:15 +00:00
|
|
|
public DataSerializerEntry(IDataSerializer<?> serializer)
|
2019-04-11 12:33:12 +00:00
|
|
|
{
|
|
|
|
this.serializer = serializer;
|
|
|
|
}
|
|
|
|
|
2019-05-23 23:02:15 +00:00
|
|
|
public IDataSerializer<?> getSerializer()
|
2019-04-11 12:33:12 +00:00
|
|
|
{
|
|
|
|
return serializer;
|
|
|
|
}
|
|
|
|
}
|