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
-
Method Details
-
create
T create(int syncId, net.minecraft.util.Identifier identifier, net.minecraft.entity.player.PlayerEntity player, net.minecraft.network.PacketByteBuf buf) 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.