Class MappedEntitySet<T>
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.MappedEntitySet<T>
Either a key to a specific tag or a list of possible entities.
-
Constructor Summary
ConstructorDescriptionMappedEntitySet
(@Nullable ResourceLocation tagKey, @Nullable List<T> entities) MappedEntitySet
(ResourceLocation tagKey) MappedEntitySet
(List<T> entities) -
Method Summary
Modifier and TypeMethodDescriptionstatic <Z extends MappedEntity>
MappedEntitySet<Z> static <Z extends MappedEntity>
MappedEntitySet<Z> decode
(NBT nbt, ClientVersion version, IRegistry<Z> registry) static <Z extends MappedEntity>
NBTencode
(MappedEntitySet<Z> set, ClientVersion version) boolean
@Nullable ResourceLocation
int
hashCode()
boolean
isEmpty()
static <Z extends MappedEntity>
MappedEntitySet<Z> read
(PacketWrapper<?> wrapper, BiFunction<ClientVersion, Integer, Z> getter) toString()
static <Z extends MappedEntity>
voidwrite
(PacketWrapper<?> wrapper, MappedEntitySet<Z> set)
-
Constructor Details
-
MappedEntitySet
-
MappedEntitySet
-
MappedEntitySet
public MappedEntitySet(@Nullable @Nullable ResourceLocation tagKey, @Nullable @Nullable List<T> entities)
-
-
Method Details
-
createEmpty
-
read
public static <Z extends MappedEntity> MappedEntitySet<Z> read(PacketWrapper<?> wrapper, BiFunction<ClientVersion, Integer, Z> getter) -
write
-
decode
public static <Z extends MappedEntity> MappedEntitySet<Z> decode(NBT nbt, ClientVersion version, IRegistry<Z> registry) -
encode
-
isEmpty
public boolean isEmpty() -
getTagKey
-
getEntities
-
equals
-
hashCode
public int hashCode() -
toString
-