Interface PlayerEntityEvent.LootContainerOpened
- Enclosing interface:
PlayerEntityEvent
public static interface PlayerEntityEvent.LootContainerOpened
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(net.minecraft.server.network.ServerPlayerEntity player, net.minecraft.block.entity.LootableContainerBlockEntity container) ATEvent
that is invoked whenever aServerPlayerEntity
opens a container that has a loot-table aka randomly generated loot inside of it.
-
Method Details
-
invoke
void invoke(net.minecraft.server.network.ServerPlayerEntity player, net.minecraft.block.entity.LootableContainerBlockEntity container) ATEvent
that is invoked whenever aServerPlayerEntity
opens a container that has a loot-table aka randomly generated loot inside of it. ThisTEvent
will not invoke for any subsequent openings of the same container.- Parameters:
player
- TheServerPlayerEntity
that opened the container.container
- The opened container.
-