Package org.geysermc.geyser.item.hashing
Interface MapBuilder<Type>
- Type Parameters:
Type- the type to encode.
- All Superinterfaces:
Function<MapHasher<Type>,,MapHasher<Type>> UnaryOperator<MapHasher<Type>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <Casted> MapBuilder<Casted>cast()Casts this map builder to aMapBuilder.static <Type> MapBuilder<Type>unit()Returns a map builder that doesn't contain anything.
-
Method Details
-
cast
Casts this map builder to aMapBuilder. This cast is done unsafely, only use this if you are sure the object being encoded is of the type being cast to!- Type Parameters:
Casted- the type to cast to.
-
unit
Returns a map builder that doesn't contain anything.- Type Parameters:
Type- the type to encode.
-