Skip to content

Conversation

@3TUSK
Copy link
Member

@3TUSK 3TUSK commented Dec 31, 2019

Synopsis / 简介

重写第 14 章。

Description / 详细说明

从零开始重写第 14 章:Minecraft GUI 系统详解。

Justification / 理由

烂尾工程一扫空。

Remarks / 备注

嗝。

@3TUSK 3TUSK added Status: Work In Progress Actions has been taken, please stand by. Type: New Content Requesting new contents. This also applies to Pull Request. labels Dec 31, 2019
public boolean canPlayerInteractWith(EntityPlayer player) {
// 决定了指定玩家是否能与这个 Container 交互。
// 返回 false 会阻止玩家正常使用 GUI。
return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这么写会有复制物品的bug。既然它是一个tile,应当判断这个tile还在不在玩家附近。具体参见 TileEntityLockableLoot#isUsableByPlayer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是一个空架子……


就 Container 和 GuiContainer 之间的关系,ustc-zzzz 有一张图很好的对其进行了解释:
- 画线段
- 画矩形(需首先绑定纹理)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(需首先绑定纹理)

drawGradientRect 要哭了

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

……

@Snownee Snownee requested review from Snownee and removed request for Snownee December 31, 2019 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Work In Progress Actions has been taken, please stand by. Type: New Content Requesting new contents. This also applies to Pull Request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants