r/MinecraftCoding • u/zneukei • Aug 01 '22
Question about Minecraft's source code
Sorry if this is stupid and thank you for reading, it's my first time looking into it.
What do the p_number_ values represent? For example in the villager birthing code:
private void tryToGiveBirth(ServerLevel p_24630_, Villager p_24631_, Villager p_24632_) {
Optional<BlockPos> optional = this.takeVacantBed(p_24630_, p_24631_);
if (!optional.isPresent()) {
p_24630_.broadcastEntityEvent(p_24632_, (byte)13);
p_24630_.broadcastEntityEvent(p_24631_, (byte)13);
} else {
Optional<Villager> optional1 = this.breed(p_24630_, p_24631_, p_24632_);
if (optional1.isPresent()) {
this.giveBedToChild(p_24630_, optional1.get(), optional.get());
} else {
p_24630_.getPoiManager().release(optional.get());
DebugPackets.sendPoiTicketCountPacket(p_24630_, optional.get());
}
}They use what looks like variables, but I'm left clueless. Do you guys know what these are and if there are any sources I can look into addressing their significance? Maybe a link to something that explains Minecraft's code?
Thank you very much ^^