Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ch.14): rewrite Ch. 14 #59

Draft
wants to merge 2 commits into
base: bleeding
Choose a base branch
from
Draft

feat(ch.14): rewrite Ch. 14 #59

wants to merge 2 commits into from

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.

2 participants