Package net.minecraft.world.event
Interface PositionSource
- All Known Implementing Classes:
BlockPositionSource
,EntityPositionSource
public interface PositionSource
A position source is a property of a game event listener.
- See Also:
- Mappings:
Namespace Name named net/minecraft/world/event/PositionSource
intermediary net/minecraft/class_5716
official dya
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<PositionSource> static final PacketCodec
<RegistryByteBuf, PositionSource> -
Method Summary
Modifier and TypeMethodDescriptionPositionSourceType
<? extends PositionSource> getType()
Returns the type of this position source.
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/event/PositionSource;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_28184
Lnet/minecraft/class_5716;field_28184:Lcom/mojang/serialization/Codec;
official c
Ldya;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/world/event/PositionSource;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48379
Lnet/minecraft/class_5716;field_48379:Lnet/minecraft/class_9139;
official d
Ldya;d:Lyw;
-
-
Method Details
-
getPos
- Mappings:
Namespace Name Mixin selector named getPos
Lnet/minecraft/world/event/PositionSource;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
intermediary method_32956
Lnet/minecraft/class_5716;method_32956(Lnet/minecraft/class_1937;)Ljava/util/Optional;
official a
Ldya;a(Ldcu;)Ljava/util/Optional;
-
getType
PositionSourceType<? extends PositionSource> getType()Returns the type of this position source.- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/world/event/PositionSource;getType()Lnet/minecraft/world/event/PositionSourceType;
intermediary method_32955
Lnet/minecraft/class_5716;method_32955()Lnet/minecraft/class_5717;
official a
Ldya;a()Ldyb;
-