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_333220_, VaultState p_335172_) (package private) static void
cycleDisplayItemFromLootTable
(ServerLevel p_328186_, VaultState p_335064_, VaultConfig p_329242_, VaultSharedData p_336318_, BlockPos p_327920_) private static ItemStack
getRandomDisplayItemFromLootTable
(ServerLevel p_329309_, BlockPos p_331772_, ResourceKey<LootTable> p_327947_) private static boolean
isValidToInsert
(VaultConfig p_334332_, ItemStack p_335056_) private static void
playInsertFailSound
(ServerLevel p_334677_, VaultServerData p_330421_, BlockPos p_330460_, SoundEvent p_342956_) resolveItemsToEject
(ServerLevel p_332295_, VaultConfig p_329503_, BlockPos p_333443_, Player p_334837_) (package private) static void
setVaultState
(ServerLevel p_327709_, BlockPos p_330897_, BlockState p_333801_, BlockState p_336357_, VaultConfig p_332945_, VaultSharedData p_328872_) private static boolean
shouldCycleDisplayItem
(long p_334702_, VaultState p_332761_) static void
tick
(ServerLevel p_327862_, BlockPos p_334036_, BlockState p_336094_, VaultConfig p_332912_, VaultServerData p_332613_, VaultSharedData p_336360_) static void
tryInsertKey
(ServerLevel p_330813_, BlockPos p_333223_, BlockState p_331301_, VaultConfig p_333877_, VaultServerData p_334388_, VaultSharedData p_330336_, Player p_332764_, ItemStack p_329896_) private static void
unlock
(ServerLevel p_329025_, BlockState p_334542_, BlockPos p_331457_, VaultConfig p_328759_, VaultServerData p_329258_, VaultSharedData p_328090_, List<ItemStack> p_328105_)
-
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_329309_, BlockPos p_331772_, ResourceKey<LootTable> p_327947_) -
resolveItemsToEject
private static List<ItemStack> resolveItemsToEject(ServerLevel p_332295_, VaultConfig p_329503_, BlockPos p_333443_, Player p_334837_) -
canEjectReward
-
isValidToInsert
-
shouldCycleDisplayItem
-
playInsertFailSound
private static void playInsertFailSound(ServerLevel p_334677_, VaultServerData p_330421_, BlockPos p_330460_, SoundEvent p_342956_)