Package net.minecraft.block.entity
Class VaultBlockEntity.Server
java.lang.Object
net.minecraft.block.entity.VaultBlockEntity.Server
- Enclosing class:
VaultBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/VaultBlockEntity$Server
intermediary net/minecraft/class_9199$class_9201
official drl$b
-
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
canBeUnlocked
(VaultConfig config, VaultState state) (package private) static void
changeVaultState
(ServerWorld world, BlockPos pos, BlockState oldState, BlockState newState, VaultConfig config, VaultSharedData sharedData) private static ItemStack
generateDisplayItem
(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable) generateLoot
(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) private static boolean
isValidKey
(VaultConfig config, ItemStack stack) private static void
playFailedUnlockSound
(ServerWorld world, VaultServerData serverData, BlockPos pos) private static boolean
shouldUpdateDisplayItem
(long time, VaultState state) static void
tick
(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData) static void
tryUnlock
(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, PlayerEntity player, ItemStack stack) private static void
unlock
(ServerWorld world, BlockState state, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, List<ItemStack> itemsToEject) (package private) static void
updateDisplayItem
(ServerWorld world, VaultState state, VaultConfig config, VaultSharedData sharedData, BlockPos pos)
-
Field Details
-
UNLOCK_TIME
private static final int UNLOCK_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named UNLOCK_TIME
Lnet/minecraft/block/entity/VaultBlockEntity$Server;UNLOCK_TIME:I
intermediary field_48875
Lnet/minecraft/class_9199$class_9201;field_48875:I
official a
Ldrl$b;a:I
-
DISPLAY_UPDATE_INTERVAL
private static final int DISPLAY_UPDATE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named DISPLAY_UPDATE_INTERVAL
Lnet/minecraft/block/entity/VaultBlockEntity$Server;DISPLAY_UPDATE_INTERVAL:I
intermediary field_48876
Lnet/minecraft/class_9199$class_9201;field_48876:I
official b
Ldrl$b;b:I
-
FAILED_UNLOCK_COOLDOWN
private static final int FAILED_UNLOCK_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named FAILED_UNLOCK_COOLDOWN
Lnet/minecraft/block/entity/VaultBlockEntity$Server;FAILED_UNLOCK_COOLDOWN:I
intermediary field_48877
Lnet/minecraft/class_9199$class_9201;field_48877:I
official c
Ldrl$b;c:I
-
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
generateDisplayItem
private static ItemStack generateDisplayItem(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable) - Mappings:
Namespace Name Mixin selector named generateDisplayItem
Lnet/minecraft/block/entity/VaultBlockEntity$Server;generateDisplayItem(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/item/ItemStack;
intermediary method_56755
Lnet/minecraft/class_9199$class_9201;method_56755(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5321;)Lnet/minecraft/class_1799;
official a
Ldrl$b;a(Larf;Liz;Lale;)Lcuq;
-
generateLoot
private static List<ItemStack> generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) - Mappings:
Namespace Name Mixin selector named generateLoot
Lnet/minecraft/block/entity/VaultBlockEntity$Server;generateLoot(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)Ljava/util/List;
intermediary method_56751
Lnet/minecraft/class_9199$class_9201;method_56751(Lnet/minecraft/class_3218;Lnet/minecraft/class_9203;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;)Ljava/util/List;
official a
Ldrl$b;a(Larf;Ldrn;Liz;Lcmy;)Ljava/util/List;
-
canBeUnlocked
- Mappings:
Namespace Name Mixin selector named canBeUnlocked
Lnet/minecraft/block/entity/VaultBlockEntity$Server;canBeUnlocked(Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/block/enums/VaultState;)Z
intermediary method_56760
Lnet/minecraft/class_9199$class_9201;method_56760(Lnet/minecraft/class_9203;Lnet/minecraft/class_9206;)Z
official a
Ldrl$b;a(Ldrn;Ldrq;)Z
-
isValidKey
- Mappings:
Namespace Name Mixin selector named isValidKey
Lnet/minecraft/block/entity/VaultBlockEntity$Server;isValidKey(Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/item/ItemStack;)Z
intermediary method_56759
Lnet/minecraft/class_9199$class_9201;method_56759(Lnet/minecraft/class_9203;Lnet/minecraft/class_1799;)Z
official a
Ldrl$b;a(Ldrn;Lcuq;)Z
-
shouldUpdateDisplayItem
- Mappings:
Namespace Name Mixin selector named shouldUpdateDisplayItem
Lnet/minecraft/block/entity/VaultBlockEntity$Server;shouldUpdateDisplayItem(JLnet/minecraft/block/enums/VaultState;)Z
intermediary method_56750
Lnet/minecraft/class_9199$class_9201;method_56750(JLnet/minecraft/class_9206;)Z
official a
Ldrl$b;a(JLdrq;)Z
-
playFailedUnlockSound
private static void playFailedUnlockSound(ServerWorld world, VaultServerData serverData, BlockPos pos) - Mappings:
Namespace Name Mixin selector named playFailedUnlockSound
Lnet/minecraft/block/entity/VaultBlockEntity$Server;playFailedUnlockSound(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/vault/VaultServerData;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_56752
Lnet/minecraft/class_9199$class_9201;method_56752(Lnet/minecraft/class_3218;Lnet/minecraft/class_9204;Lnet/minecraft/class_2338;)V
official a
Ldrl$b;a(Larf;Ldro;Liz;)V