Interface PositionSourceType<T extends PositionSource>

All Known Implementing Classes:
BlockPositionSource.Type, EntityPositionSource.Type

public interface PositionSourceType<T extends PositionSource>
Mappings:
Namespace Name
official dgf
intermediary net/minecraft/class_5717
named net/minecraft/world/event/PositionSourceType
  • Field Details

    • BLOCK

      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a:Ldgf;
      intermediary field_28185 Lnet/minecraft/class_5717;field_28185:Lnet/minecraft/class_5717;
      named BLOCK Lnet/minecraft/world/event/PositionSourceType;BLOCK:Lnet/minecraft/world/event/PositionSourceType;
    • ENTITY

      Mappings:
      Namespace Name Mixin selector
      official b Ldgf;b:Ldgf;
      intermediary field_28186 Lnet/minecraft/class_5717;field_28186:Lnet/minecraft/class_5717;
      named ENTITY Lnet/minecraft/world/event/PositionSourceType;ENTITY:Lnet/minecraft/world/event/PositionSourceType;
  • Method Details

    • readFromBuf

      T readFromBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Ldgf;b(Lss;)Ldge;
      intermediary method_32962 Lnet/minecraft/class_5717;method_32962(Lnet/minecraft/class_2540;)Lnet/minecraft/class_5716;
      named readFromBuf Lnet/minecraft/world/event/PositionSourceType;readFromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/world/event/PositionSource;
    • writeToBuf

      void writeToBuf(PacketByteBuf buf, T positionSource)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a(Lss;Ldge;)V
      intermediary method_32960 Lnet/minecraft/class_5717;method_32960(Lnet/minecraft/class_2540;Lnet/minecraft/class_5716;)V
      named writeToBuf Lnet/minecraft/world/event/PositionSourceType;writeToBuf(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/world/event/PositionSource;)V
    • getCodec

      com.mojang.serialization.Codec<T> getCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a()Lcom/mojang/serialization/Codec;
      intermediary method_32957 Lnet/minecraft/class_5717;method_32957()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/world/event/PositionSourceType;getCodec()Lcom/mojang/serialization/Codec;
    • register

      static <S extends PositionSourceType<T>, T extends PositionSource> S register(String id, S positionSourceType)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a(Ljava/lang/String;Ldgf;)Ldgf;
      intermediary method_32959 Lnet/minecraft/class_5717;method_32959(Ljava/lang/String;Lnet/minecraft/class_5717;)Lnet/minecraft/class_5717;
      named register Lnet/minecraft/world/event/PositionSourceType;register(Ljava/lang/String;Lnet/minecraft/world/event/PositionSourceType;)Lnet/minecraft/world/event/PositionSourceType;
    • read

      static PositionSource read(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official c Ldgf;c(Lss;)Ldge;
      intermediary method_32963 Lnet/minecraft/class_5717;method_32963(Lnet/minecraft/class_2540;)Lnet/minecraft/class_5716;
      named read Lnet/minecraft/world/event/PositionSourceType;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/world/event/PositionSource;
    • write

      static <T extends PositionSource> void write(T positionSource, PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a(Ldge;Lss;)V
      intermediary method_32958 Lnet/minecraft/class_5717;method_32958(Lnet/minecraft/class_5716;Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/world/event/PositionSourceType;write(Lnet/minecraft/world/event/PositionSource;Lnet/minecraft/network/PacketByteBuf;)V