Interface ContainerFactory<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(int syncId, Identifier identifier, PlayerEntity player, PacketByteBuf buf) Deprecated.Creates the new object.
-
Method Details
-
create
Deprecated.Creates the new object.- Parameters:
syncId
- The container synchronization ID.identifier
- the Identifier is the name that was used when registering the factoryplayer
- the player that is opening the gui/containerbuf
- the buffer contains the same data that was provided withContainerProviderRegistry.openContainer(net.minecraft.util.Identifier, net.minecraft.server.network.ServerPlayerEntity, java.util.function.Consumer<net.minecraft.network.PacketByteBuf>)
- Returns:
- the new gui or container
-
ScreenHandlerRegistry.ExtendedClientHandlerFactory
instead.