Package net.minecraft.block.entity
Class VaultBlockEntity.Server
java.lang.Object
net.minecraft.block.entity.VaultBlockEntity.Server
- Enclosing class:
VaultBlockEntity
- Mappings:
Namespace Name official dpp$b
intermediary net/minecraft/class_9199$class_9201
named net/minecraft/block/entity/VaultBlockEntity$Server
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
-
Constructor Summary
Constructors -
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> registryKey) 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 official a
Ldpp$b;a:I
intermediary field_48875
Lnet/minecraft/class_9199$class_9201;field_48875:I
named UNLOCK_TIME
Lnet/minecraft/block/entity/VaultBlockEntity$Server;UNLOCK_TIME:I
-
DISPLAY_UPDATE_INTERVAL
private static final int DISPLAY_UPDATE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldpp$b;b:I
intermediary field_48876
Lnet/minecraft/class_9199$class_9201;field_48876:I
named DISPLAY_UPDATE_INTERVAL
Lnet/minecraft/block/entity/VaultBlockEntity$Server;DISPLAY_UPDATE_INTERVAL:I
-
FAILED_UNLOCK_COOLDOWN
private static final int FAILED_UNLOCK_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldpp$b;c:I
intermediary field_48877
Lnet/minecraft/class_9199$class_9201;field_48877:I
named FAILED_UNLOCK_COOLDOWN
Lnet/minecraft/block/entity/VaultBlockEntity$Server;FAILED_UNLOCK_COOLDOWN:I
-
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
generateDisplayItem
private static ItemStack generateDisplayItem(ServerWorld world, BlockPos pos, RegistryKey<LootTable> registryKey) - Mappings:
Namespace Name Mixin selector official a
Ldpp$b;a(Laqh;Lin;Lakg;)Lcsz;
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;
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;
-
generateLoot
private static List<ItemStack> generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) - Mappings:
Namespace Name Mixin selector official a
Ldpp$b;a(Laqh;Ldpr;Lin;Lclh;)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;
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;
-
canBeUnlocked
- Mappings:
Namespace Name Mixin selector official a
Ldpp$b;a(Ldpr;Ldpu;)Z
intermediary method_56760
Lnet/minecraft/class_9199$class_9201;method_56760(Lnet/minecraft/class_9203;Lnet/minecraft/class_9206;)Z
named canBeUnlocked
Lnet/minecraft/block/entity/VaultBlockEntity$Server;canBeUnlocked(Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/block/enums/VaultState;)Z
-
isValidKey
- Mappings:
Namespace Name Mixin selector official a
Ldpp$b;a(Ldpr;Lcsz;)Z
intermediary method_56759
Lnet/minecraft/class_9199$class_9201;method_56759(Lnet/minecraft/class_9203;Lnet/minecraft/class_1799;)Z
named isValidKey
Lnet/minecraft/block/entity/VaultBlockEntity$Server;isValidKey(Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/item/ItemStack;)Z
-
shouldUpdateDisplayItem
- Mappings:
Namespace Name Mixin selector official a
Ldpp$b;a(JLdpu;)Z
intermediary method_56750
Lnet/minecraft/class_9199$class_9201;method_56750(JLnet/minecraft/class_9206;)Z
named shouldUpdateDisplayItem
Lnet/minecraft/block/entity/VaultBlockEntity$Server;shouldUpdateDisplayItem(JLnet/minecraft/block/enums/VaultState;)Z
-
playFailedUnlockSound
private static void playFailedUnlockSound(ServerWorld world, VaultServerData serverData, BlockPos pos) - Mappings:
Namespace Name Mixin selector official a
Ldpp$b;a(Laqh;Ldps;Lin;)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
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