Class VaultBlockEntity.Server
java.lang.Object
net.minecraft.world.level.block.entity.vault.VaultBlockEntity.Server
- Enclosing class:
VaultBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
canEjectReward
(VaultConfig p_323595_, VaultState p_324160_) (package private) static void
cycleDisplayItemFromLootTable
(ServerLevel p_323551_, VaultState p_324221_, VaultConfig p_324332_, VaultSharedData p_323644_, BlockPos p_323602_) private static ItemStack
getRandomDisplayItemFromLootTable
(ServerLevel p_323781_, BlockPos p_324109_, ResourceKey<LootTable> p_336119_) private static boolean
isValidToInsert
(VaultConfig p_323488_, ItemStack p_324101_) private static void
playInsertFailSound
(ServerLevel p_324555_, VaultServerData p_324017_, BlockPos p_324186_, SoundEvent p_350407_) resolveItemsToEject
(ServerLevel p_323877_, VaultConfig p_324041_, BlockPos p_324255_, Player p_324347_) (package private) static void
setVaultState
(ServerLevel p_324091_, BlockPos p_324620_, BlockState p_323759_, BlockState p_324027_, VaultConfig p_324140_, VaultSharedData p_323624_) private static boolean
shouldCycleDisplayItem
(long p_323548_, VaultState p_323823_) static void
tick
(ServerLevel p_323841_, BlockPos p_324265_, BlockState p_324343_, VaultConfig p_324129_, VaultServerData p_324579_, VaultSharedData p_324317_) static void
tryInsertKey
(ServerLevel p_323533_, BlockPos p_323777_, BlockState p_324589_, VaultConfig p_323660_, VaultServerData p_323829_, VaultSharedData p_324341_, Player p_324373_, ItemStack p_324551_) private static void
unlock
(ServerLevel p_323501_, BlockState p_323758_, BlockPos p_323773_, VaultConfig p_324195_, VaultServerData p_324600_, VaultSharedData p_324277_, List<ItemStack> p_324574_)
-
Field Details
-
UNLOCKING_DELAY_TICKS
private static final int UNLOCKING_DELAY_TICKS- See Also:
-
DISPLAY_CYCLE_TICK_RATE
private static final int DISPLAY_CYCLE_TICK_RATE- See Also:
-
INSERT_FAIL_SOUND_BUFFER_TICKS
private static final int INSERT_FAIL_SOUND_BUFFER_TICKS- See Also:
-
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
getRandomDisplayItemFromLootTable
private static ItemStack getRandomDisplayItemFromLootTable(ServerLevel p_323781_, BlockPos p_324109_, ResourceKey<LootTable> p_336119_) -
resolveItemsToEject
private static List<ItemStack> resolveItemsToEject(ServerLevel p_323877_, VaultConfig p_324041_, BlockPos p_324255_, Player p_324347_) -
canEjectReward
-
isValidToInsert
-
shouldCycleDisplayItem
-
playInsertFailSound
private static void playInsertFailSound(ServerLevel p_324555_, VaultServerData p_324017_, BlockPos p_324186_, SoundEvent p_350407_)