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 official dgmintermediary net/minecraft/class_5716named net/minecraft/world/event/PositionSource
-
Field Summary
Fields -
Method Summary
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLdgm;b:Lcom/mojang/serialization/Codec;intermediary field_28184Lnet/minecraft/class_5716;field_28184:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/event/PositionSource;CODEC:Lcom/mojang/serialization/Codec;
-
-
Method Details
-
getPos
- Mappings:
Namespace Name Mixin selector official aLdgm;a(Lcmk;)Ljava/util/Optional;intermediary method_32956Lnet/minecraft/class_5716;method_32956(Lnet/minecraft/class_1937;)Ljava/util/Optional;named getPosLnet/minecraft/world/event/PositionSource;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
-
getType
PositionSourceType<?> getType()Returns the type of this position source.- Mappings:
Namespace Name Mixin selector official aLdgm;a()Ldgn;intermediary method_32955Lnet/minecraft/class_5716;method_32955()Lnet/minecraft/class_5717;named getTypeLnet/minecraft/world/event/PositionSource;getType()Lnet/minecraft/world/event/PositionSourceType;
-