package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_6_7;

import io.netty.buffer.ByteBuf;
import protocolsupport.protocol.ConnectionImpl;
import protocolsupport.protocol.packet.middle.serverbound.play.MiddleSteerVehicle;
import protocolsupport.utils.BitUtils;

public class SteerVehicle extends MiddleSteerVehicle {

	public SteerVehicle(ConnectionImpl connection) {
		super(connection);
	}

	@Override
	public void readFromClientData(ByteBuf clientdata) {
		sideForce = clientdata.readFloat();
		forwardForce = clientdata.readFloat();
		BitUtils.setIBit(flags, FLAGS_BIT_JUMPING, clientdata.readByte());
		BitUtils.setIBit(flags, FLAGS_BIT_UNMOUNT, clientdata.readByte());
	}

}

@@ -403,16 +403,110 @@
 n);%0A%09%7D%0A%0A
+%09protected static final int%5B%5D flags_mask = new int%5B%5D %7BFLAGS_BIT_JUMPING, FLAGS_BIT_UNMOUNT%7D;%0A%0A
 %09@Overri
@@ -508,16 +508,16 @@
 verride%0A
-
 %09public 
@@ -639,24 +639,32 @@
 dFloat();%0A%09%09
+flags = 
 BitUtils.set
@@ -664,109 +664,75 @@
 ils.
-setIBit(flags, FLAGS_BIT_JUMPING, clientdata.readByte());%0A%09%09BitUtils.setIBit(flags, FLAGS_BIT_UNMOUNT
+createIBitMaskFromBits(flags_mask, new int%5B%5D %7Bclientdata.readByte()
 , cl
@@ -750,16 +750,17 @@
 adByte()
+%7D
 );%0A%09%7D%0A%0A%7D

Use bit utils createBitMask