提供: Minecraft Modding Wiki
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
4行目: | 4行目: | ||
[[Fabric/ブロック追加|ブロック追加]]のソースコード2からまず、ブロックを追加してください。 | [[Fabric/ブロック追加|ブロック追加]]のソースコード2からまず、ブロックを追加してください。 | ||
無機能なブロックエンティティ(タイルエンティティ)を追加します。 | 無機能なブロックエンティティ(タイルエンティティ)を追加します。 | ||
− | |||
− | |||
==ブロックエンティティの追加== | ==ブロックエンティティの追加== | ||
77行目: | 75行目: | ||
import net.minecraft.block.entity.BlockEntity; | import net.minecraft.block.entity.BlockEntity; | ||
− | |||
− | |||
− | |||
public class SampleBlockEntity extends BlockEntity { | public class SampleBlockEntity extends BlockEntity { | ||
− | |||
public SampleBlockEntity() { | public SampleBlockEntity() { | ||
super(Main.SAMPLE_BLOCK_ENTITY); | super(Main.SAMPLE_BLOCK_ENTITY); | ||
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
</source> | </source> |