|
| 1 | +/* |
| 2 | + * This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion |
| 3 | + * Copyright (C) 2016-2024 ViaVersion and contributors |
| 4 | + * |
| 5 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | + * of this software and associated documentation files (the "Software"), to deal |
| 7 | + * in the Software without restriction, including without limitation the rights |
| 8 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | + * copies of the Software, and to permit persons to whom the Software is |
| 10 | + * furnished to do so, subject to the following conditions: |
| 11 | + * |
| 12 | + * The above copyright notice and this permission notice shall be included in all |
| 13 | + * copies or substantial portions of the Software. |
| 14 | + * |
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 21 | + * SOFTWARE. |
| 22 | + */ |
| 23 | +package com.viaversion.viaversion.api.minecraft.entitydata.types; |
| 24 | + |
| 25 | +import com.viaversion.viaversion.api.minecraft.PaintingVariant; |
| 26 | +import com.viaversion.viaversion.api.minecraft.Particle; |
| 27 | +import com.viaversion.viaversion.api.minecraft.WolfVariant; |
| 28 | +import com.viaversion.viaversion.api.minecraft.entitydata.EntityDataType; |
| 29 | +import com.viaversion.viaversion.api.minecraft.item.Item; |
| 30 | +import com.viaversion.viaversion.api.type.Type; |
| 31 | +import com.viaversion.viaversion.api.type.Types; |
| 32 | +import com.viaversion.viaversion.api.type.types.ArrayType; |
| 33 | +import com.viaversion.viaversion.api.type.types.misc.ParticleType; |
| 34 | + |
| 35 | +public final class EntityDataTypes1_21_2 extends AbstractEntityDataTypes { |
| 36 | + |
| 37 | + public final EntityDataType byteType = add(0, Types.BYTE); |
| 38 | + public final EntityDataType varIntType = add(1, Types.VAR_INT); |
| 39 | + public final EntityDataType longType = add(2, Types.VAR_LONG); |
| 40 | + public final EntityDataType floatType = add(3, Types.FLOAT); |
| 41 | + public final EntityDataType stringType = add(4, Types.STRING); |
| 42 | + public final EntityDataType componentType = add(5, Types.TAG); |
| 43 | + public final EntityDataType optionalComponentType = add(6, Types.OPTIONAL_TAG); |
| 44 | + public final EntityDataType itemType; |
| 45 | + public final EntityDataType booleanType = add(8, Types.BOOLEAN); |
| 46 | + public final EntityDataType rotationsType = add(9, Types.ROTATIONS); |
| 47 | + public final EntityDataType blockPositionType = add(10, Types.BLOCK_POSITION1_14); |
| 48 | + public final EntityDataType optionalBlockPositionType = add(11, Types.OPTIONAL_POSITION_1_14); |
| 49 | + public final EntityDataType directionType = add(12, Types.VAR_INT); |
| 50 | + public final EntityDataType optionalUUIDType = add(13, Types.OPTIONAL_UUID); |
| 51 | + public final EntityDataType blockStateType = add(14, Types.VAR_INT); |
| 52 | + public final EntityDataType optionalBlockStateType = add(15, Types.VAR_INT); |
| 53 | + public final EntityDataType compoundTagType = add(16, Types.COMPOUND_TAG); |
| 54 | + public final EntityDataType particleType; |
| 55 | + public final EntityDataType particlesType; |
| 56 | + public final EntityDataType villagerDatatType = add(19, Types.VILLAGER_DATA); |
| 57 | + public final EntityDataType optionalVarIntType = add(20, Types.OPTIONAL_VAR_INT); |
| 58 | + public final EntityDataType poseType = add(21, Types.VAR_INT); |
| 59 | + public final EntityDataType catVariantType = add(22, Types.VAR_INT); |
| 60 | + public final EntityDataType wolfVariantType = add(23, WolfVariant.TYPE); |
| 61 | + public final EntityDataType frogVariantType = add(24, Types.VAR_INT); |
| 62 | + public final EntityDataType optionalGlobalPosition = add(25, Types.OPTIONAL_GLOBAL_POSITION); |
| 63 | + public final EntityDataType paintingVariantType = add(26, PaintingVariant.TYPE1_21_2); |
| 64 | + public final EntityDataType snifferState = add(27, Types.VAR_INT); |
| 65 | + public final EntityDataType armadilloState = add(28, Types.VAR_INT); |
| 66 | + public final EntityDataType vector3FType = add(29, Types.VECTOR3F); |
| 67 | + public final EntityDataType quaternionType = add(30, Types.QUATERNION); |
| 68 | + |
| 69 | + public EntityDataTypes1_21_2(final Type<Item> itemType, final ParticleType particleType, final ArrayType<Particle> particlesType) { |
| 70 | + super(31); |
| 71 | + this.itemType = add(7, itemType); |
| 72 | + this.particleType = add(17, particleType); |
| 73 | + this.particlesType = add(18, particlesType); |
| 74 | + } |
| 75 | +} |
0 commit comments