Package net.minecraft.client.multiplayer.chat.report
Part 1/1
AbuseReportSender
- Full name:
net.minecraft.client.multiplayer.chat.report.AbuseReportSender - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/AbuseReportSender.java - Type:
interface - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.AbuseReportSender#create(ReportEnvironment,UserApiService)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/AbuseReportSender.java:21 - Modifiers:
static - Return:
AbuseReportSender
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: Services(). สร้างออบเจ็กต์: AbuseReportSender.Services. คืนค่า: new AbuseReportSender.Services(reportEnvironment, userApiService).
Parameters
ReportEnvironment reportEnvironmentUserApiService userApiService
ตัวอย่างใช้งาน
ReportEnvironment reportEnvironment = ...;
UserApiService userApiService = ...;
AbuseReportSender result = AbuseReportSender.create(reportEnvironment, userApiService);
net.minecraft.client.multiplayer.chat.report.AbuseReportSender#isEnabled()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/AbuseReportSender.java:27 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Enabled
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.AbuseReportSender#reportLimits()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/AbuseReportSender.java:29 - Modifiers:
default - Return:
AbuseReportLimits
คืออะไร
ดำเนินการ reportLimits ตาม implementation ของ AbuseReportSender
ทำงานยังไง
คืนค่า: AbuseReportLimits.DEFAULTS.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.AbuseReportSender#send(UUID,ReportType,AbuseReport)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/AbuseReportSender.java:25 - Modifiers: ``
- Return:
CompletableFuture<Unit>
คืออะไร
ส่ง send
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
UUID uUIDReportType reportTypeAbuseReport abuseReport
ตัวอย่างใช้งาน
AbuseReportSender instance = ...;
UUID uUID = ...;
ReportType reportType = ...;
AbuseReport abuseReport = ...;
CompletableFuture<Unit> result = instance.send(uUID, reportType, abuseReport);
BanReason
- Full name:
net.minecraft.client.multiplayer.chat.report.BanReason - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/BanReason.java - Type:
enum - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.BanReason#byId(int)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/BanReason.java:34 - Modifiers:
public static - Return:
BanReason
คืออะไร
ดำเนินการ byId ตาม implementation ของ BanReason
ทำงานยังไง
แยกกรณีด้วย switch. คืนค่า: switch (i) { case 2 -> FALSE_REPORTING.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.BanReason#title()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/BanReason.java:30 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ title ตาม implementation ของ BanReason
ทำงานยังไง
คืนค่า: this.title.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChatReport
- Full name:
net.minecraft.client.multiplayer.chat.report.ChatReport - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ChatReport.java - Type:
class - Modifiers:
public - Extends:
Report
net.minecraft.client.multiplayer.chat.report.ChatReport#copy()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:46 - Modifiers:
public - Return:
ChatReport
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: addAll(). สร้างออบเจ็กต์: ChatReport. คืนค่า: chatReport.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReport#createScreen(Screen,ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:55 - Modifiers:
public - Return:
Screen
คืออะไร
สร้าง Screen
ทำงานยังไง
สร้างออบเจ็กต์: ChatReportScreen. คืนค่า: new ChatReportScreen(screen, reportingContext, this).
Parameters
Screen screenReportingContext reportingContext
ตัวอย่างใช้งาน
ChatReport instance = ...;
Screen screen = ...;
ReportingContext reportingContext = ...;
Screen result = instance.createScreen(screen, reportingContext);
net.minecraft.client.multiplayer.chat.report.ChatReport#toggleReported(int,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:38 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ toggleReported ตาม implementation ของ ChatReport
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), remove(), size(), maxReportedMessageCount(), add().
Parameters
int iAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
ChatReport instance = ...;
AbuseReportLimits abuseReportLimits = ...;
instance.toggleReported(0, abuseReportLimits);
ChatReport$Builder
- Full name:
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ChatReport.java - Type:
class - Modifiers:
public static - Extends:
Report.Builder<ChatReport>
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#build(ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:101 - Modifiers:
public - Return:
Either<Report.Result, Report.CannotBuildReason>
คืออะไร
สร้าง build
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: checkBuildable(), right(), requireNonNull(), backendName(), buildEvidence(), chat(), left(), Result(). สร้างออบเจ็กต์: ReportedEntity, Report.Result. มีจุด return อย่างน้อย 2 จุด.
Parameters
ReportingContext reportingContext
ตัวอย่างใช้งาน
ChatReport.Builder instance = ...;
ReportingContext reportingContext = ...;
Either<Report.Result, Report.CannotBuildReason> result = instance.build(reportingContext);
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#Builder(ChatReport,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:62 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChatReport.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ChatReport chatReportAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
ChatReport chatReport = ...;
AbuseReportLimits abuseReportLimits = ...;
ChatReport.Builder instance = new ChatReport.Builder(chatReport, abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#Builder(UUID,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:66 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChatReport.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: randomUUID(), now(). สร้างออบเจ็กต์: ChatReport.
Parameters
UUID uUIDAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
UUID uUID = ...;
AbuseReportLimits abuseReportLimits = ...;
ChatReport.Builder instance = new ChatReport.Builder(uUID, abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#checkBuildable()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:87 - Modifiers:
public - Return:
Report.CannotBuildReason
คืออะไร
ตรวจสอบ Buildable
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), size(), maxReportedMessageCount(), length(), maxOpinionCommentsLength(). มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#copy()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:142 - Modifiers:
public - Return:
ChatReport.Builder
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: ChatReport.Builder. คืนค่า: new ChatReport.Builder(this.report.copy(), this.limits).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#hasContent()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:82 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Content
ทำงานยังไง
เรียกต่อ: isNotEmpty(), comments(), reportedMessages(), isEmpty(), reason(). คืนค่า: StringUtils.isNotEmpty(this.comments()) || !this.reportedMessages().isEmpty() || this.reason() != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#isReported(int)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:78 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Reported
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.report.reportedMessages.contains(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#reportedMessages()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:70 - Modifiers:
public - Return:
IntSet
คืออะไร
ดำเนินการ reportedMessages ตาม implementation ของ ChatReport$Builder
ทำงานยังไง
คืนค่า: this.report.reportedMessages.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReport$Builder#toggleReported(int)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReport.java:74 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ toggleReported ตาม implementation ของ ChatReport$Builder
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
ChatReportContextBuilder
- Full name:
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java - Type:
class - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder#acceptContext(PlayerChatMessage)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java:47 - Modifiers:
public - Return:
boolean
คืออะไร
รับค่า Context
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: iterator(), hasNext(), next(), accept(), isComplete(), remove(). คืนค่า: bl.
Parameters
PlayerChatMessage playerChatMessage
ตัวอย่างใช้งาน
ChatReportContextBuilder instance = ...;
PlayerChatMessage playerChatMessage = ...;
boolean result = instance.acceptContext(playerChatMessage);
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder#ChatReportContextBuilder(int)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChatReportContextBuilder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: leadingCount.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder#collectAllContext(ChatLog,IntCollection,ChatReportContextBuilder.Handler)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java:27 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ collectAllContext ตาม implementation ของ ChatReportContextBuilder
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: lastInt(), start(), isActive(), isEmpty(), lookup(), acceptContext(), message(), remove(). สร้างออบเจ็กต์: IntRBTreeSet.
Parameters
ChatLog chatLogIntCollection intCollectionChatReportContextBuilder.Handler handler
ตัวอย่างใช้งาน
ChatReportContextBuilder instance = ...;
ChatLog chatLog = ...;
IntCollection intCollection = ...;
ChatReportContextBuilder.Handler handler = ...;
instance.collectAllContext(chatLog, intCollection, handler);
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder#isActive()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java:64 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Active
ทำงานยังไง
เรียกต่อ: isEmpty(). คืนค่า: !this.activeCollectors.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder#trackContext(PlayerChatMessage)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java:43 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ trackContext ตาม implementation ของ ChatReportContextBuilder
ทำงานยังไง
เรียกต่อ: add(), Collector(). สร้างออบเจ็กต์: ChatReportContextBuilder.Collector.
Parameters
PlayerChatMessage playerChatMessage
ตัวอย่างใช้งาน
ChatReportContextBuilder instance = ...;
PlayerChatMessage playerChatMessage = ...;
instance.trackContext(playerChatMessage);
ChatReportContextBuilder$Handler
- Full name:
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder$Handler - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java - Type:
interface - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.ChatReportContextBuilder$Handler#accept(int,LoggedChatMessage.Player)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ChatReportContextBuilder.java:109 - Modifiers: ``
- Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iLoggedChatMessage.Player player
ตัวอย่างใช้งาน
ChatReportContextBuilder.Handler instance = ...;
LoggedChatMessage.Player player = ...;
instance.accept(0, player);
NameReport
- Full name:
net.minecraft.client.multiplayer.chat.report.NameReport - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/NameReport.java - Type:
class - Modifiers:
public - Extends:
Report
net.minecraft.client.multiplayer.chat.report.NameReport#copy()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:29 - Modifiers:
public - Return:
NameReport
คืออะไร
คัดลอก copy
ทำงานยังไง
สร้างออบเจ็กต์: NameReport. คืนค่า: nameReport.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.NameReport#createScreen(Screen,ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:36 - Modifiers:
public - Return:
Screen
คืออะไร
สร้าง Screen
ทำงานยังไง
สร้างออบเจ็กต์: NameReportScreen. คืนค่า: new NameReportScreen(screen, reportingContext, this).
Parameters
Screen screenReportingContext reportingContext
ตัวอย่างใช้งาน
NameReport instance = ...;
Screen screen = ...;
ReportingContext reportingContext = ...;
Screen result = instance.createScreen(screen, reportingContext);
net.minecraft.client.multiplayer.chat.report.NameReport#getReportedName()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:25 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Reported Name
ทำงานยังไง
คืนค่า: this.reportedName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NameReport$Builder
- Full name:
net.minecraft.client.multiplayer.chat.report.NameReport$Builder - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/NameReport.java - Type:
class - Modifiers:
public static - Extends:
Report.Builder<NameReport>
net.minecraft.client.multiplayer.chat.report.NameReport$Builder#build(ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:62 - Modifiers:
public - Return:
Either<Report.Result, Report.CannotBuildReason>
คืออะไร
สร้าง build
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: checkBuildable(), right(), name(), left(), Result(). สร้างออบเจ็กต์: ReportedEntity, Report.Result. มีจุด return อย่างน้อย 2 จุด.
Parameters
ReportingContext reportingContext
ตัวอย่างใช้งาน
NameReport.Builder instance = ...;
ReportingContext reportingContext = ...;
Either<Report.Result, Report.CannotBuildReason> result = instance.build(reportingContext);
net.minecraft.client.multiplayer.chat.report.NameReport$Builder#Builder(NameReport,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NameReport.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
NameReport nameReportAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
NameReport nameReport = ...;
AbuseReportLimits abuseReportLimits = ...;
NameReport.Builder instance = new NameReport.Builder(nameReport, abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.NameReport$Builder#Builder(UUID,String,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:47 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NameReport.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: randomUUID(), now(). สร้างออบเจ็กต์: NameReport.
Parameters
UUID uUIDString stringAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
UUID uUID = ...;
AbuseReportLimits abuseReportLimits = ...;
NameReport.Builder instance = new NameReport.Builder(uUID, "value", abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.NameReport$Builder#checkBuildable()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:56 - Modifiers:
public - Return:
Report.CannotBuildReason
คืออะไร
ตรวจสอบ Buildable
ทำงานยังไง
เรียกต่อ: length(), maxOpinionCommentsLength(). คืนค่า: this.report.comments.length() > this.limits.maxOpinionCommentsLength() ? Report.CannotBuildReason.COMMENT_TOO_LONG : super.checkBuildable().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.NameReport$Builder#hasContent()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/NameReport.java:51 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Content
ทำงานยังไง
เรียกต่อ: isNotEmpty(), comments(). คืนค่า: StringUtils.isNotEmpty(this.comments()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Report
- Full name:
net.minecraft.client.multiplayer.chat.report.Report - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/Report.java - Type:
class - Modifiers:
public abstract
net.minecraft.client.multiplayer.chat.report.Report#copy()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:35 - Modifiers:
public abstract - Return:
Report
คืออะไร
คัดลอก copy
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report#createScreen(Screen,ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:37 - Modifiers:
public abstract - Return:
Screen
คืออะไร
สร้าง Screen
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Screen screenReportingContext reportingContext
ตัวอย่างใช้งาน
Report instance = ...;
Screen screen = ...;
ReportingContext reportingContext = ...;
Screen result = instance.createScreen(screen, reportingContext);
net.minecraft.client.multiplayer.chat.report.Report#isReportedPlayer(UUID)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:31 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Reported Player
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: uUID.equals(this.reportedProfileId).
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report#Report(UUID,Instant,UUID)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Report ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: reportId, createdAt, reportedProfileId.
Parameters
UUID uUIDInstant instantUUID uUID2
ตัวอย่างใช้งาน
UUID uUID = ...;
Instant instant = ...;
UUID uUID2 = ...;
Report instance = new Report(uUID, instant, uUID2);
Report$Builder
- Full name:
net.minecraft.client.multiplayer.chat.report.Report$Builder - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/Report.java - Type:
class - Modifiers:
public abstract static
net.minecraft.client.multiplayer.chat.report.Report$Builder#attested()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:61 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ attested ตาม implementation ของ Report$Builder
ทำงานยังไง
เรียกต่อ: report(). คืนค่า: this.report().attested.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#build(ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:89 - Modifiers:
public abstract - Return:
Either<Report.Result, Report.CannotBuildReason>
คืออะไร
สร้าง build
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
ReportingContext reportingContext
ตัวอย่างใช้งาน
Report.Builder instance = ...;
ReportingContext reportingContext = ...;
Either<Report.Result, Report.CannotBuildReason> result = instance.build(reportingContext);
net.minecraft.client.multiplayer.chat.report.Report$Builder#Builder(R,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:44 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Report.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: report, limits.
Parameters
R reportAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
R report = ...;
AbuseReportLimits abuseReportLimits = ...;
Report.Builder instance = new Report.Builder(report, abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.Report$Builder#checkBuildable()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:84 - Modifiers:
public - Return:
Report.CannotBuildReason
คืออะไร
ตรวจสอบ Buildable
ทำงานยังไง
เรียกต่อ: report(). คืนค่า: !this.report().attested ? Report.CannotBuildReason.NOT_ATTESTED : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#comments()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:57 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ comments ตาม implementation ของ Report$Builder
ทำงานยังไง
คืนค่า: this.report.comments.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#hasContent()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:82 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Content
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#reason()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:69 - Modifiers:
public - Return:
ReportReason
คืออะไร
ดำเนินการ reason ตาม implementation ของ Report$Builder
ทำงานยังไง
คืนค่า: this.report.reason.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#report()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:49 - Modifiers:
public - Return:
R
คืออะไร
ดำเนินการ report ตาม implementation ของ Report$Builder
ทำงานยังไง
คืนค่า: this.report.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#reportedProfileId()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:53 - Modifiers:
public - Return:
UUID
คืออะไร
ดำเนินการ reportedProfileId ตาม implementation ของ Report$Builder
ทำงานยังไง
คืนค่า: this.report.reportedProfileId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#setAttested(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:78 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Attested
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#setComments(String)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:65 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Comments
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.Report$Builder#setReason(ReportReason)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:74 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Reason
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ReportReason reportReason
ตัวอย่างใช้งาน
Report$CannotBuildReason
- Full name:
net.minecraft.client.multiplayer.chat.report.Report$CannotBuildReason - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/Report.java - Type:
record - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.Report$CannotBuildReason#tooltip()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/Report.java:102 - Modifiers:
public - Return:
Tooltip
คืออะไร
ดำเนินการ tooltip ตาม implementation ของ Report$CannotBuildReason
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: Tooltip.create(this.message).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ReportEnvironment
- Full name:
net.minecraft.client.multiplayer.chat.report.ReportEnvironment - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java - Type:
record - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#clientInfo()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:31 - Modifiers:
public - Return:
ClientInfo
คืออะไร
ดำเนินการ clientInfo ตาม implementation ของ ReportEnvironment
ทำงานยังไง
เรียกต่อ: getDefault(), toLanguageTag(). สร้างออบเจ็กต์: ClientInfo. คืนค่า: new ClientInfo(this.clientVersion, Locale.getDefault().toLanguageTag()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#create(ReportEnvironment.Server)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:27 - Modifiers:
public static - Return:
ReportEnvironment
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: getClientVersion(). สร้างออบเจ็กต์: ReportEnvironment. คืนค่า: new ReportEnvironment(getClientVersion(), server).
Parameters
ReportEnvironment.Server server
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#local()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:15 - Modifiers:
public static - Return:
ReportEnvironment
คืออะไร
ดำเนินการ local ตาม implementation ของ ReportEnvironment
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: create(null).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#realm(RealmsServer)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:23 - Modifiers:
public static - Return:
ReportEnvironment
คืออะไร
ดำเนินการ realm ตาม implementation ของ ReportEnvironment
ทำงานยังไง
เรียกต่อ: create(), Realm(). สร้างออบเจ็กต์: ReportEnvironment.Server.Realm. คืนค่า: create(new ReportEnvironment.Server.Realm(realmsServer)).
Parameters
RealmsServer realmsServer
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#realmInfo()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:40 - Modifiers:
public - Return:
RealmInfo
คืออะไร
ดำเนินการ realmInfo ตาม implementation ของ ReportEnvironment
ทำงานยังไง
เรียกต่อ: valueOf(), realmId(), slotId(). สร้างออบเจ็กต์: RealmInfo. คืนค่า: this.server instanceof ReportEnvironment.Server.Realm realm ? new RealmInfo(String.valueOf(realm.realmId()), realm.slotId()) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#thirdParty(String)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:19 - Modifiers:
public static - Return:
ReportEnvironment
คืออะไร
ดำเนินการ thirdParty ตาม implementation ของ ReportEnvironment
ทำงานยังไง
เรียกต่อ: create(), ThirdParty(). สร้างออบเจ็กต์: ReportEnvironment.Server.ThirdParty. คืนค่า: create(new ReportEnvironment.Server.ThirdParty(string)).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportEnvironment#thirdPartyServerInfo()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportEnvironment.java:35 - Modifiers:
public - Return:
ThirdPartyServerInfo
คืออะไร
ดำเนินการ thirdPartyServerInfo ตาม implementation ของ ReportEnvironment
ทำงานยังไง
สร้างออบเจ็กต์: ThirdPartyServerInfo. คืนค่า: this.server instanceof ReportEnvironment.Server.ThirdParty thirdParty ? new ThirdPartyServerInfo(thirdParty.ip) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ReportingContext
- Full name:
net.minecraft.client.multiplayer.chat.report.ReportingContext - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ReportingContext.java - Type:
class - Modifiers:
public final
net.minecraft.client.multiplayer.chat.report.ReportingContext#chatLog()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:64 - Modifiers:
public - Return:
ChatLog
คืออะไร
ดำเนินการ chatLog ตาม implementation ของ ReportingContext
ทำงานยังไง
คืนค่า: this.chatLog.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportingContext#create(ReportEnvironment,UserApiService)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:30 - Modifiers:
public static - Return:
ReportingContext
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: ChatLog, ReportingContext. คืนค่า: new ReportingContext(abuseReportSender, reportEnvironment, chatLog).
Parameters
ReportEnvironment reportEnvironmentUserApiService userApiService
ตัวอย่างใช้งาน
ReportEnvironment reportEnvironment = ...;
UserApiService userApiService = ...;
ReportingContext result = ReportingContext.create(reportEnvironment, userApiService);
net.minecraft.client.multiplayer.chat.report.ReportingContext#draftReportHandled(Minecraft,Screen,Runnable,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:36 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ draftReportHandled ตาม implementation ของ ReportingContext
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: copy(), setScreen(), setReportDraft(), createScreen(), run(), translatable(). สร้างออบเจ็กต์: ConfirmScreen.
Parameters
Minecraft minecraftScreen screenRunnable runnableboolean bl
ตัวอย่างใช้งาน
ReportingContext instance = ...;
Minecraft minecraft = ...;
Screen screen = ...;
Runnable runnable = ...;
instance.draftReportHandled(minecraft, screen, runnable, true);
net.minecraft.client.multiplayer.chat.report.ReportingContext#hasDraftReport()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:76 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Draft Report
ทำงานยังไง
คืนค่า: this.draftReport != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportingContext#hasDraftReportFor(UUID)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:80 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Draft Report For
ทำงานยังไง
เรียกต่อ: hasDraftReport(), isReportedPlayer(). คืนค่า: this.hasDraftReport() && this.draftReport.isReportedPlayer(uUID).
Parameters
UUID uUID
ตัวอย่างใช้งาน
ReportingContext instance = ...;
UUID uUID = ...;
boolean result = instance.hasDraftReportFor(uUID);
net.minecraft.client.multiplayer.chat.report.ReportingContext#matches(ReportEnvironment)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ matches ตาม implementation ของ ReportingContext
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: Objects.equals(this.environment, reportEnvironment).
Parameters
ReportEnvironment reportEnvironment
ตัวอย่างใช้งาน
ReportingContext instance = ...;
ReportEnvironment reportEnvironment = ...;
boolean result = instance.matches(reportEnvironment);
net.minecraft.client.multiplayer.chat.report.ReportingContext#ReportingContext(AbuseReportSender,ReportEnvironment,ChatLog)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ReportingContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: sender, environment, chatLog.
Parameters
AbuseReportSender abuseReportSenderReportEnvironment reportEnvironmentChatLog chatLog
ตัวอย่างใช้งาน
AbuseReportSender abuseReportSender = ...;
ReportEnvironment reportEnvironment = ...;
ChatLog chatLog = ...;
ReportingContext instance = new ReportingContext(abuseReportSender, reportEnvironment, chatLog);
net.minecraft.client.multiplayer.chat.report.ReportingContext#sender()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:60 - Modifiers:
public - Return:
AbuseReportSender
คืออะไร
ดำเนินการ sender ตาม implementation ของ ReportingContext
ทำงานยังไง
คืนค่า: this.sender.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportingContext#setReportDraft(Report)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportingContext.java:72 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Report Draft
ทำงานยังไง
แก้ state: draftReport.
Parameters
Report report
ตัวอย่างใช้งาน
ReportReason
- Full name:
net.minecraft.client.multiplayer.chat.report.ReportReason - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ReportReason.java - Type:
enum - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.ReportReason#backendName()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportReason.java:34 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ backendName ตาม implementation ของ ReportReason
ทำงานยังไง
คืนค่า: this.backendName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportReason#description()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportReason.java:42 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ description ตาม implementation ของ ReportReason
ทำงานยังไง
คืนค่า: this.description.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.ReportReason#getIncompatibleCategories(ReportType)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportReason.java:46 - Modifiers:
public static - Return:
List<ReportReason>
คืออะไร
อ่านค่า Incompatible Categories
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: of(). คืนค่า: switch (reportType) { case CHAT -> List.of(SEXUALLY_INAPPROPRIATE).
Parameters
ReportType reportType
ตัวอย่างใช้งาน
ReportType reportType = ...;
List<ReportReason> result = ReportReason.getIncompatibleCategories(reportType);
net.minecraft.client.multiplayer.chat.report.ReportReason#title()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportReason.java:38 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ title ตาม implementation ของ ReportReason
ทำงานยังไง
คืนค่า: this.title.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ReportType
- Full name:
net.minecraft.client.multiplayer.chat.report.ReportType - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/ReportType.java - Type:
enum - Modifiers:
public
net.minecraft.client.multiplayer.chat.report.ReportType#backendName()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/ReportType.java:19 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ backendName ตาม implementation ของ ReportType
ทำงานยังไง
คืนค่า: this.backendName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SkinReport
- Full name:
net.minecraft.client.multiplayer.chat.report.SkinReport - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/SkinReport.java - Type:
class - Modifiers:
public - Extends:
Report
net.minecraft.client.multiplayer.chat.report.SkinReport#copy()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:32 - Modifiers:
public - Return:
SkinReport
คืออะไร
คัดลอก copy
ทำงานยังไง
สร้างออบเจ็กต์: SkinReport. คืนค่า: skinReport.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.SkinReport#createScreen(Screen,ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:40 - Modifiers:
public - Return:
Screen
คืออะไร
สร้าง Screen
ทำงานยังไง
สร้างออบเจ็กต์: SkinReportScreen. คืนค่า: new SkinReportScreen(screen, reportingContext, this).
Parameters
Screen screenReportingContext reportingContext
ตัวอย่างใช้งาน
SkinReport instance = ...;
Screen screen = ...;
ReportingContext reportingContext = ...;
Screen result = instance.createScreen(screen, reportingContext);
net.minecraft.client.multiplayer.chat.report.SkinReport#getSkinGetter()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:28 - Modifiers:
public - Return:
Supplier<PlayerSkin>
คืออะไร
อ่านค่า Skin Getter
ทำงานยังไง
คืนค่า: this.skinGetter.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SkinReport$Builder
- Full name:
net.minecraft.client.multiplayer.chat.report.SkinReport$Builder - Package:
net.minecraft.client.multiplayer.chat.report - Source:
clientOnly—net/minecraft/client/multiplayer/chat/report/SkinReport.java - Type:
class - Modifiers:
public static - Extends:
Report.Builder<SkinReport>
net.minecraft.client.multiplayer.chat.report.SkinReport$Builder#build(ReportingContext)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:70 - Modifiers:
public - Return:
Either<Report.Result, Report.CannotBuildReason>
คืออะไร
สร้าง build
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: checkBuildable(), right(), requireNonNull(), backendName(), get(), textureUrl(), skin(), left(). สร้างออบเจ็กต์: ReportedEntity, Report.Result. มีจุด return อย่างน้อย 2 จุด.
Parameters
ReportingContext reportingContext
ตัวอย่างใช้งาน
SkinReport.Builder instance = ...;
ReportingContext reportingContext = ...;
Either<Report.Result, Report.CannotBuildReason> result = instance.build(reportingContext);
net.minecraft.client.multiplayer.chat.report.SkinReport$Builder#Builder(SkinReport,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:47 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkinReport.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SkinReport skinReportAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
SkinReport skinReport = ...;
AbuseReportLimits abuseReportLimits = ...;
SkinReport.Builder instance = new SkinReport.Builder(skinReport, abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.SkinReport$Builder#Builder(UUID,Supplier<PlayerSkin>,AbuseReportLimits)
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:51 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkinReport.Builder ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: randomUUID(), now(). สร้างออบเจ็กต์: SkinReport.
Parameters
UUID uUIDSupplier<PlayerSkin> supplierAbuseReportLimits abuseReportLimits
ตัวอย่างใช้งาน
UUID uUID = ...;
Supplier<PlayerSkin> supplier = ...;
AbuseReportLimits abuseReportLimits = ...;
SkinReport.Builder instance = new SkinReport.Builder(uUID, supplier, abuseReportLimits);
net.minecraft.client.multiplayer.chat.report.SkinReport$Builder#checkBuildable()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:60 - Modifiers:
public - Return:
Report.CannotBuildReason
คืออะไร
ตรวจสอบ Buildable
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: length(), maxOpinionCommentsLength(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.multiplayer.chat.report.SkinReport$Builder#hasContent()
- Origin:
clientOnly - Source:
net/minecraft/client/multiplayer/chat/report/SkinReport.java:55 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Content
ทำงานยังไง
เรียกต่อ: isNotEmpty(), comments(), reason(). คืนค่า: StringUtils.isNotEmpty(this.comments()) || this.reason() != null.
Parameters
- ไม่มี