Package net.minecraft.block.entity
Class JukeboxBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.JukeboxBlockEntity
- All Implemented Interfaces:
Clearable
- Mappings:
Namespace Name official cucintermediary net/minecraft/class_2619named net/minecraft/block/entity/JukeboxBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ItemStackprivate longprivate longprivate intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()private static booleanhasSecondPassed(JukeboxBlockEntity blockEntity) private static booleanisPlayingRecord(BlockState state, JukeboxBlockEntity blockEntity) private static booleanisSongFinished(JukeboxBlockEntity blockEntity, MusicDiscItem musicDisc) voidreadNbt(NbtCompound nbt) Reads data fromnbt.voidvoidstatic voidtick(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity) protected voidwriteNbt(NbtCompound nbt) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
-
Field Details
-
record
- Mappings:
Namespace Name Mixin selector official aLcuc;a:Lcax;intermediary field_12031Lnet/minecraft/class_2619;field_12031:Lnet/minecraft/class_1799;named recordLnet/minecraft/block/entity/JukeboxBlockEntity;record:Lnet/minecraft/item/ItemStack;
-
ticksThisSecond
private int ticksThisSecond- Mappings:
Namespace Name Mixin selector official bLcuc;b:Iintermediary field_39481Lnet/minecraft/class_2619;field_39481:Inamed ticksThisSecondLnet/minecraft/block/entity/JukeboxBlockEntity;ticksThisSecond:I
-
tickCount
private long tickCount- Mappings:
Namespace Name Mixin selector official cLcuc;c:Jintermediary field_39482Lnet/minecraft/class_2619;field_39482:Jnamed tickCountLnet/minecraft/block/entity/JukeboxBlockEntity;tickCount:J
-
recordStartTick
private long recordStartTick- Mappings:
Namespace Name Mixin selector official dLcuc;d:Jintermediary field_39483Lnet/minecraft/class_2619;field_39483:Jnamed recordStartTickLnet/minecraft/block/entity/JukeboxBlockEntity;recordStartTick:J
-
isPlaying
private boolean isPlaying- Mappings:
Namespace Name Mixin selector official eLcuc;e:Zintermediary field_39484Lnet/minecraft/class_2619;field_39484:Znamed isPlayingLnet/minecraft/block/entity/JukeboxBlockEntity;isPlaying:Z
-
-
Constructor Details
-
JukeboxBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcuc;<init>(Lgt;Lcvo;)Vintermediary <init>Lnet/minecraft/class_2619;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/JukeboxBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
readNbt
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLcti;a(Lpj;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLcti;b(Lpj;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getRecord
- Mappings:
Namespace Name Mixin selector official cLcuc;c()Lcax;intermediary method_11275Lnet/minecraft/class_2619;method_11275()Lnet/minecraft/class_1799;named getRecordLnet/minecraft/block/entity/JukeboxBlockEntity;getRecord()Lnet/minecraft/item/ItemStack;
-
setRecord
- Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcax;)Vintermediary method_11276Lnet/minecraft/class_2619;method_11276(Lnet/minecraft/class_1799;)Vnamed setRecordLnet/minecraft/block/entity/JukeboxBlockEntity;setRecord(Lnet/minecraft/item/ItemStack;)V
-
startPlaying
public void startPlaying()- Mappings:
Namespace Name Mixin selector official dLcuc;d()Vintermediary method_44374Lnet/minecraft/class_2619;method_44374()Vnamed startPlayingLnet/minecraft/block/entity/JukeboxBlockEntity;startPlaying()V
-
clear
public void clear() -
tick
public static void tick(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcgx;Lgt;Lcvo;Lcuc;)Vintermediary method_44370Lnet/minecraft/class_2619;method_44370(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2619;)Vnamed tickLnet/minecraft/block/entity/JukeboxBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/JukeboxBlockEntity;)V
-
isPlayingRecord
- Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcvo;Lcuc;)Zintermediary method_44373Lnet/minecraft/class_2619;method_44373(Lnet/minecraft/class_2680;Lnet/minecraft/class_2619;)Znamed isPlayingRecordLnet/minecraft/block/entity/JukeboxBlockEntity;isPlayingRecord(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/JukeboxBlockEntity;)Z
-
isSongFinished
- Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcuc;Lcbo;)Zintermediary method_44372Lnet/minecraft/class_2619;method_44372(Lnet/minecraft/class_2619;Lnet/minecraft/class_1813;)Znamed isSongFinishedLnet/minecraft/block/entity/JukeboxBlockEntity;isSongFinished(Lnet/minecraft/block/entity/JukeboxBlockEntity;Lnet/minecraft/item/MusicDiscItem;)Z
-
hasSecondPassed
- Mappings:
Namespace Name Mixin selector official aLcuc;a(Lcuc;)Zintermediary method_44371Lnet/minecraft/class_2619;method_44371(Lnet/minecraft/class_2619;)Znamed hasSecondPassedLnet/minecraft/block/entity/JukeboxBlockEntity;hasSecondPassed(Lnet/minecraft/block/entity/JukeboxBlockEntity;)Z
-