Refactor env attribute package structure

This commit is contained in:
booky committed 2025-12-07 23:11:46 +01:00
1 parent 9109e247db
commit c828e8b111
19 files changed
+29 -18

No files matched your search

@@ -20,6 +20,7 @@ package com.github.retrooper.packetevents.protocol.world.attributes;
import com.github.retrooper.packetevents.protocol.mapper.MappedEntity;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.world.attributes.modifiers.AttributeModifier;
import org.jspecify.annotations.NullMarked;
/**
@@ -25,6 +25,7 @@ import com.github.retrooper.packetevents.protocol.particle.Particle;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecException;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.world.attributes.modifiers.AttributeModifier;
import com.github.retrooper.packetevents.protocol.world.biome.BiomeEffects.ParticleSettings;
import com.github.retrooper.packetevents.util.mappings.VersionedRegistry;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
@@ -19,7 +19,6 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
import com.github.retrooper.packetevents.protocol.mapper.MappedEntity;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import org.jspecify.annotations.NullMarked;
/**
@@ -23,6 +23,7 @@ import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecException;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.util.NbtMapCodec;
import com.github.retrooper.packetevents.protocol.world.attributes.modifiers.AttributeModifier;
import com.github.retrooper.packetevents.util.Either;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jspecify.annotations.NullMarked;
@@ -20,6 +20,7 @@ package com.github.retrooper.packetevents.protocol.world.attributes;
import com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.world.attributes.modifiers.AttributeModifier;
import com.github.retrooper.packetevents.util.mappings.TypesBuilderData;
import org.jetbrains.annotations.ApiStatus;
import org.jspecify.annotations.NullMarked;
@@ -1,4 +1,4 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.easing;
import com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity;
import com.github.retrooper.packetevents.protocol.nbt.NBTCompound;
@@ -1,4 +1,4 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.easing;
import com.github.retrooper.packetevents.protocol.mapper.MappedEntity;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
@@ -1,7 +1,7 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.easing;
import com.github.retrooper.packetevents.util.easing.EasingFunctions;
import com.github.retrooper.packetevents.util.FloatUnaryOperator;
import com.github.retrooper.packetevents.util.easing.EasingFunctions;
import com.github.retrooper.packetevents.util.mappings.VersionedRegistry;
import org.jetbrains.annotations.ApiStatus;
import org.jspecify.annotations.NullMarked;
@@ -1,10 +1,8 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.easing;
// Created by booky10 in packetevents (8:41 PM 07.12.2025)
import com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity;
import com.github.retrooper.packetevents.util.FloatUnaryOperator;
import com.github.retrooper.packetevents.util.easing.CubicBezierControls;
import com.github.retrooper.packetevents.util.easing.CubicCurve;
import com.github.retrooper.packetevents.util.mappings.TypesBuilderData;
import org.jetbrains.annotations.ApiStatus;
import org.jspecify.annotations.NullMarked;
@@ -16,12 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.modifiers;
import com.github.retrooper.packetevents.protocol.color.AlphaColor;
import com.github.retrooper.packetevents.protocol.color.Color;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import org.jspecify.annotations.NullMarked;
/**
@@ -1,10 +1,11 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.modifiers;
import com.github.retrooper.packetevents.protocol.color.AlphaColor;
import com.github.retrooper.packetevents.protocol.color.Color;
import com.github.retrooper.packetevents.protocol.util.CodecNameable;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import com.github.retrooper.packetevents.util.MapUtil;
import org.jspecify.annotations.NullMarked;
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.modifiers;
import com.github.retrooper.packetevents.protocol.color.AlphaColor;
import com.github.retrooper.packetevents.protocol.color.Color;
@@ -16,10 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.modifiers;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import org.jspecify.annotations.NullMarked;
/**
@@ -16,12 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.modifiers;
import com.github.retrooper.packetevents.protocol.color.AlphaColor;
import com.github.retrooper.packetevents.protocol.color.Color;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import org.jspecify.annotations.NullMarked;
/**
@@ -16,10 +16,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.modifiers;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecs;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import com.github.retrooper.packetevents.util.AlphaFloat;
import com.github.retrooper.packetevents.util.MathUtil;
import org.jspecify.annotations.NullMarked;
@@ -1,4 +1,4 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.timelines;
import com.github.retrooper.packetevents.protocol.nbt.NBTCompound;
import com.github.retrooper.packetevents.protocol.nbt.NBTInt;
@@ -1,9 +1,11 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.timelines;
import com.github.retrooper.packetevents.protocol.nbt.NBTCompound;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecException;
import com.github.retrooper.packetevents.protocol.util.NbtMapCodec;
import com.github.retrooper.packetevents.protocol.world.attributes.easing.EasingType;
import com.github.retrooper.packetevents.protocol.world.attributes.easing.EasingTypes;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jspecify.annotations.NullMarked;
@@ -1,8 +1,9 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.timelines;
import com.github.retrooper.packetevents.protocol.mapper.CopyableEntity;
import com.github.retrooper.packetevents.protocol.mapper.DeepComparableEntity;
import com.github.retrooper.packetevents.protocol.mapper.MappedEntity;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import org.jspecify.annotations.NullMarked;
import java.util.Map;
@@ -1,9 +1,11 @@
package com.github.retrooper.packetevents.protocol.world.attributes;
package com.github.retrooper.packetevents.protocol.world.attributes.timelines;
import com.github.retrooper.packetevents.protocol.nbt.NBTCompound;
import com.github.retrooper.packetevents.protocol.util.NbtCodec;
import com.github.retrooper.packetevents.protocol.util.NbtCodecException;
import com.github.retrooper.packetevents.protocol.util.NbtMapCodec;
import com.github.retrooper.packetevents.protocol.world.attributes.EnvironmentAttribute;
import com.github.retrooper.packetevents.protocol.world.attributes.modifiers.AttributeModifier;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jspecify.annotations.NullMarked;