forked from Tnze/go-mc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blockentity.go
63 lines (58 loc) · 1.91 KB
/
blockentity.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package block
//go:generate go run ./generator/blockentities/main.go
type Entity interface {
ID() string
IsValidBlock(block Block) bool
}
type (
FurnaceEntity struct{}
ChestEntity struct{}
TrappedChestEntity struct{}
EnderChestEntity struct{}
JukeboxEntity struct{}
DispenserEntity struct{}
DropperEntity struct{}
SignEntity struct{}
HangingSignEntity struct{}
MobSpawnerEntity struct{}
PistonEntity struct{}
BrewingStandEntity struct{}
EnchantingTableEntity struct{}
EndPortalEntity struct{}
BeaconEntity struct{}
SkullEntity struct{}
DaylightDetectorEntity struct{}
HopperEntity struct{}
ComparatorEntity struct{}
BannerEntity struct{}
StructureBlockEntity struct{}
EndGatewayEntity struct{}
CommandBlockEntity struct{}
ShulkerBoxEntity struct{}
BedEntity struct{}
ConduitEntity struct{}
BarrelEntity struct{}
SmokerEntity struct{}
BlastFurnaceEntity struct{}
LecternEntity struct{}
BellEntity struct{}
JigsawEntity struct{}
CampfireEntity struct{}
BeehiveEntity struct{}
SculkSensorEntity struct{}
CalibratedSculkSensorEntity struct{}
SculkCatalystEntity struct{}
SculkShriekerEntity struct{}
ChiseledBookshelfEntity struct{}
SuspiciousSandEntity struct{}
BrushableBlockEntity struct{}
DecoratedPotEntity struct{}
)
type EntityType int32
var EntityTypes map[string]EntityType
func init() {
EntityTypes = make(map[string]EntityType, len(EntityList))
for i, v := range EntityList {
EntityTypes[v.ID()] = EntityType(i)
}
}