net.minecraft.world.level.gameevent

public interface PositionSourceType<T extends PositionSource>

djy
net.minecraft.world.level.gameevent.PositionSourceType
net.minecraft.class_5717
net.minecraft.world.event.PositionSourceType
net.minecraft.src.C_141313_
net.minecraft.world.level.gameevent.PositionSourceType

Field summary

Modifier and TypeField
PositionSourceType<BlockPositionSource>
a
BLOCK
field_28185
BLOCK
f_157871_
PositionSourceType<EntityPositionSource>
b
ENTITY
field_28186
ENTITY
f_157872_

Method summary

Modifier and TypeMethod
T
b(so arg0)
read(FriendlyByteBuf arg0)
method_32962(class_2540 arg0)
readFromBuf(PacketByteBuf buf)
m_142281_(C_4983_ arg0)
void
a(so arg0, T arg1)
write(FriendlyByteBuf arg0, T arg1)
method_32960(class_2540 arg0, T arg1)
writeToBuf(PacketByteBuf buf, T positionSource)
m_142235_(C_4983_ p_157881_, T arg1)
com.mojang.serialization.Codec<T>
a()
codec()
method_32957()
getCodec()
m_142341_()
static <S extends PositionSourceType<T>, T extends PositionSource> S
a(String arg0, S arg1)
register(String arg0, S arg1)
method_32959(String arg0, S arg1)
register(String id, S positionSourceType)
m_157877_(String p_157878_, S p_157879_)
static PositionSource
c(so arg0)
fromNetwork(FriendlyByteBuf arg0)
method_32963(class_2540 arg0)
read(PacketByteBuf buf)
m_157885_(C_4983_ p_157886_)
static <T extends PositionSource> void
a(T arg0, so arg1)
toNetwork(T arg0, FriendlyByteBuf arg1)
method_32958(T arg0, class_2540 arg1)
write(T positionSource, PacketByteBuf buf)
m_157874_(T p_157875_, C_4983_ p_157876_)