Package com.hbm_m.network.missile
Class S2CMissileTrackPacket
java.lang.Object
com.hbm_m.network.missile.S2CMissileTrackPacket
- All Implemented Interfaces:
S2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatfinal net.minecraft.resources.ResourceLocationfinal intfinal net.minecraft.resources.ResourceLocationfinal net.minecraft.core.Directionfinal net.minecraft.resources.ResourceLocationfinal floatfinal doublefinal doublefinal doublefinal longfinal doublefinal doublefinal floatfinal double -
Constructor Summary
ConstructorsConstructorDescriptionS2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, double x, double y, double z, double vx, double vy, double vz, float yaw, float pitch, net.minecraft.core.Direction launchFacing, net.minecraft.resources.ResourceLocation entityTypeId, net.minecraft.resources.ResourceLocation launchItemId, float contrailScale, long worldTick) S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, MissileTrackPose pose) -
Method Summary
Modifier and TypeMethodDescriptionstatic S2CMissileTrackPacketdecode(net.minecraft.network.FriendlyByteBuf buf) static voidhandle(S2CMissileTrackPacket msg, dev.architectury.networking.NetworkManager.PacketContext context) static voidsendTo(net.minecraft.server.level.ServerPlayer player, S2CMissileTrackPacket packet) voidwrite(net.minecraft.network.FriendlyByteBuf buf)
-
Field Details
-
entityId
public final int entityId -
dimensionId
public final net.minecraft.resources.ResourceLocation dimensionId -
x
public final double x -
y
public final double y -
z
public final double z -
vx
public final double vx -
vy
public final double vy -
vz
public final double vz -
yaw
public final float yaw -
pitch
public final float pitch -
launchFacing
public final net.minecraft.core.Direction launchFacing -
entityTypeId
public final net.minecraft.resources.ResourceLocation entityTypeId -
launchItemId
public final net.minecraft.resources.ResourceLocation launchItemId -
contrailScale
public final float contrailScale -
worldTick
public final long worldTick
-
-
Constructor Details
-
S2CMissileTrackPacket
public S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, MissileTrackPose pose) -
S2CMissileTrackPacket
public S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, double x, double y, double z, double vx, double vy, double vz, float yaw, float pitch, net.minecraft.core.Direction launchFacing, net.minecraft.resources.ResourceLocation entityTypeId, net.minecraft.resources.ResourceLocation launchItemId, float contrailScale, long worldTick)
-
-
Method Details
-
decode
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) -
handle
public static void handle(S2CMissileTrackPacket msg, dev.architectury.networking.NetworkManager.PacketContext context) -
sendTo
public static void sendTo(net.minecraft.server.level.ServerPlayer player, S2CMissileTrackPacket packet)
-