public static class PacketPlayMovingSound.SoundSource
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
com.mojang.datafixers.util.Either<net.minecraft.entity.Entity,net.minecraft.util.math.BlockPos> |
asEntityOrPos() |
static PacketPlayMovingSound.SoundSource |
fromBytes(net.minecraft.network.PacketBuffer buf) |
void |
handle(MovingSounds.Sound sound) |
static PacketPlayMovingSound.SoundSource |
of(net.minecraft.util.math.BlockPos pos) |
static PacketPlayMovingSound.SoundSource |
of(net.minecraft.entity.Entity e) |
static PacketPlayMovingSound.SoundSource |
of(int id) |
static PacketPlayMovingSound.SoundSource |
of(net.minecraft.tileentity.TileEntity te) |
public static PacketPlayMovingSound.SoundSource of(net.minecraft.entity.Entity e)
public static PacketPlayMovingSound.SoundSource of(int id)
public static PacketPlayMovingSound.SoundSource of(net.minecraft.util.math.BlockPos pos)
public static PacketPlayMovingSound.SoundSource of(net.minecraft.tileentity.TileEntity te)
public static PacketPlayMovingSound.SoundSource fromBytes(net.minecraft.network.PacketBuffer buf)
public void handle(MovingSounds.Sound sound)
public com.mojang.datafixers.util.Either<net.minecraft.entity.Entity,net.minecraft.util.math.BlockPos> asEntityOrPos()