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$Serverintermediary net/minecraft/class_9199$class_9201official dsk$b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancanBeUnlocked(VaultConfig config, VaultState state) (package private) static voidchangeVaultState(ServerWorld world, BlockPos pos, BlockState oldState, BlockState newState, VaultConfig config, VaultSharedData sharedData) private static ItemStackgenerateDisplayItem(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable) generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) private static booleanisValidKey(VaultConfig config, ItemStack stack) private static voidplayFailedUnlockSound(ServerWorld world, VaultServerData serverData, BlockPos pos, SoundEvent sound) private static booleanshouldUpdateDisplayItem(long time, VaultState state) static voidtick(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData) static voidtryUnlock(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, PlayerEntity player, ItemStack stack) private static voidunlock(ServerWorld world, BlockState state, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, List<ItemStack> itemsToEject) (package private) static voidupdateDisplayItem(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_TIMELnet/minecraft/block/entity/VaultBlockEntity$Server;UNLOCK_TIME:Iintermediary field_48875Lnet/minecraft/class_9199$class_9201;field_48875:Iofficial aLdsk$b;a:I
-
DISPLAY_UPDATE_INTERVAL
private static final int DISPLAY_UPDATE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named DISPLAY_UPDATE_INTERVALLnet/minecraft/block/entity/VaultBlockEntity$Server;DISPLAY_UPDATE_INTERVAL:Iintermediary field_48876Lnet/minecraft/class_9199$class_9201;field_48876:Iofficial bLdsk$b;b:I
-
FAILED_UNLOCK_COOLDOWN
private static final int FAILED_UNLOCK_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named FAILED_UNLOCK_COOLDOWNLnet/minecraft/block/entity/VaultBlockEntity$Server;FAILED_UNLOCK_COOLDOWN:Iintermediary field_48877Lnet/minecraft/class_9199$class_9201;field_48877:Iofficial cLdsk$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 generateDisplayItemLnet/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_56755Lnet/minecraft/class_9199$class_9201;method_56755(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5321;)Lnet/minecraft/class_1799;official aLdsk$b;a(Laqu;Ljd;Lakq;)Lcuq;
-
generateLoot
private static List<ItemStack> generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) - Mappings:
Namespace Name Mixin selector named generateLootLnet/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_56751Lnet/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 aLdsk$b;a(Laqu;Ldsm;Ljd;Lcmx;)Ljava/util/List;
-
canBeUnlocked
- Mappings:
Namespace Name Mixin selector named canBeUnlockedLnet/minecraft/block/entity/VaultBlockEntity$Server;canBeUnlocked(Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/block/enums/VaultState;)Zintermediary method_56760Lnet/minecraft/class_9199$class_9201;method_56760(Lnet/minecraft/class_9203;Lnet/minecraft/class_9206;)Zofficial aLdsk$b;a(Ldsm;Ldsp;)Z
-
isValidKey
- Mappings:
Namespace Name Mixin selector named isValidKeyLnet/minecraft/block/entity/VaultBlockEntity$Server;isValidKey(Lnet/minecraft/block/vault/VaultConfig;Lnet/minecraft/item/ItemStack;)Zintermediary method_56759Lnet/minecraft/class_9199$class_9201;method_56759(Lnet/minecraft/class_9203;Lnet/minecraft/class_1799;)Zofficial aLdsk$b;a(Ldsm;Lcuq;)Z
-
shouldUpdateDisplayItem
- Mappings:
Namespace Name Mixin selector named shouldUpdateDisplayItemLnet/minecraft/block/entity/VaultBlockEntity$Server;shouldUpdateDisplayItem(JLnet/minecraft/block/enums/VaultState;)Zintermediary method_56750Lnet/minecraft/class_9199$class_9201;method_56750(JLnet/minecraft/class_9206;)Zofficial aLdsk$b;a(JLdsp;)Z
-
playFailedUnlockSound
private static void playFailedUnlockSound(ServerWorld world, VaultServerData serverData, BlockPos pos, SoundEvent sound) - Mappings:
Namespace Name Mixin selector named playFailedUnlockSoundLnet/minecraft/block/entity/VaultBlockEntity$Server;playFailedUnlockSound(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/vault/VaultServerData;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;)Vintermediary method_56752Lnet/minecraft/class_9199$class_9201;method_56752(Lnet/minecraft/class_3218;Lnet/minecraft/class_9204;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;)Vofficial aLdsk$b;a(Laqu;Ldsn;Ljd;Lavo;)V